• Resolved joedwork1

    (@joedwork1)


    I am trying to output a hidden iFrame that will load in the AJAX response after submitting the form. It just outputs it as a string currently. Is this possible to do any other way?

    add_filter('wpcf7_feedback_response', function($response, $result) {
        $iframe_url = "https://software.loks.com/handler239" . "email=" . urlencode($_POST['email']) . "&company=" . urlencode($_POST['company']) . "&phone=" . urlencode($_POST['phone']);
    
        $iframe_html = '<iframe src="' . $iframe_url . '" width="1" height="1" style="display:none;"></iframe>';
        $response['message'] = $iframe_html;
    
        return $response;
    }, 10, 2);
    
    
    • This topic was modified 1 year ago by joedwork1.
    • This topic was modified 1 year ago by joedwork1.
    • This topic was modified 1 year ago by joedwork1.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Using wpcf7_feedback_response to output html in the response?’ is closed to new replies.