How to redirect a contact form after submission

Highlighted
New Member
1 0 0

Hi,

I've set up a contact form for a competition we are running and the form is currently redirecting to error message after submitting the form, even though the form is successfully submitting.

How can I get the form to redirect to a thank you page after submission - I've tried the code in this link: https://gist.github.com/carolineschnapp/3ae6ac982119fe248e6a and a few other things, but nothing is working.

Can anyone help please?

 

Thanks

0 Likes
Highlighted
Excursionist
22 0 19

I too cannot get the code in the link above to work.  Any help on this subject? 

0 Likes
Highlighted
Excursionist
22 0 19

Ok. I got it to work.  I had to put it inside the form tag.

0 Likes
Highlighted
New Member
1 0 0

do you need to paste that code in the theme.js file? I am not sure where to do this  

0 Likes