Title: Help editing code
Last modified: June 30, 2017

---

# Help editing code

 *  [doggax](https://wordpress.org/support/users/doggax/)
 * (@doggax)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/help-editing-code/)
 * 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.
 * <script>
    document.addEventListener( ‘wpcf7mailsent’, function( event ) { location
   = ‘[http://www.tgfsecurity.co.uk/thank-you/&#8217](http://www.tgfsecurity.co.uk/thank-you/&#8217);;},
   false ); </script>
 * Thanks in advance 🙂

Viewing 1 replies (of 1 total)

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/help-editing-code/#post-9278857)
 * I recommend asking at [https://wordpress.org/support/plugin/contact-form-7](https://wordpress.org/support/plugin/contact-form-7)
   so the plugin’s developers and support community can help you with this.

Viewing 1 replies (of 1 total)

The topic ‘Help editing code’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [James Huff](https://wordpress.org/support/users/macmanx/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/help-editing-code/#post-9278857)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
