Hi Ian,
Thank you for your answer!
I have looked at it but I’m having some questions on it.
1. I’m not sure where to put the code. “This is the main part that is changing from the old on_ok_sent method. Instead of adding anything into the ‘Additional Settings’ tab in Contact Form 7, we are instead going to add a hook into the functions.php file that will insert the needed javascript code at the bottom of the page”
I don’t know how to do that. Can you help me with that?
2. When it’s time to fetch the data to the Thank you page the following code is suggested:
/* custom output based on the form data
02
add_action( 'genesis_before_post_content', 'vc_genesis_custom_thankyou' );
03
function vc_genesis_custom_thankyou()
04
{
05
if(is_page('cf7-thank-you')){
06
$yourname = htmlspecialchars($_GET["yourname"]);
07
$youremail = htmlspecialchars($_GET["youremail"]);
08
$cf7oldmethod = htmlspecialchars($_GET["cf7oldmethod"]);
09
//echo your ouput as desired here using the url variables that were passed through
10
}
11
}
I’m not sure if it will work on my webpage with the Theme Twenty Seventeen? Vincent, who created the post, says in an answer to some Jonathan that it has to be a Genesis based theme from studio press.
Have you got any ideas how to solve that?
Regards,
Lotta