How can I pass name in url after redirect to thank you page in contact form7

Viewed 19

I created a contact form 7 and after submission it is also redirecting us to thank you page but i also want a url parameter where filled name also pass on url with thank you page link. I checked on google but not found any relevant answer. I am sharing the code below that i have done to redirect it-

//redirect to thank you page after submission

add_action( 'wp_footer', 'mycustom_wp_footer' );
  
function mycustom_wp_footer()
 { 

?>
<script>

   document.addEventListener( 'wpcf7mailsent', function( event )
 
    {  
        location = 'https://www.brainiuminfotech.com/thank-you/';

    }, false );

</script>
<?php

}
0 Answers
Related