Help editing code
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.
<script>
document.addEventListener( 'wpcf7mailsent', function( event ) {
location = 'http://www.tgfsecurity.co.uk/thank-you/';
}, false );
</script>
Thanks in advance