by doggax
0 replies
  • |
Hello all,

I have added a code to my WordPress site to redirect my contact 7 form to my thank you page after the form has been sent. My problem is that I have 2 contact 7 forms and I only want 1 of the forms to redirect to the thank you page after. Does anyone know who I can adjust the code?

The form I would like to redirect is called Contact and the page I don't want to redirect is called Job Application Form.

document.addEventListener( 'wpcf7mailsent', function( event ) {
location = '';
}, false );

Thanks in advance
#code #editing

Trending Topics