Move to another webpage
Hello everyone i want to move to the another webpage on submission of a form i moved to the other webpage successfully but i do not receive the email if i do not add the code to move to the other webpage than my email is send successfully can anyone help me with this i want to move the other webpage and my form should also be submitted here is the codepen link"
https://codepen.io/Talha-Mustafa/pen/LYagXQJ
8 Replies
you're redirecting the browser, so, the submit may or may not happen
so what should i do
first, send the form submission, then redirect based on the server answer
here is the code pen link"
https://codepen.io/Talha-Mustafa/pen/LYagXQJ
now i am sumbitting my form first but it is showing me error check the attached image
![No description](https://cdn.answeroverflow.com/1228204330901966918/image.png)
this expects you to send a post request to it
you can't stop the normal submit
basically, delete the javascript and it will work
if i will delete the js how i will redirected to the other page and also i want to prevent event default
yes, it will go to the other page
they don't seem to expose an api for you to use
you need to either do this, use react or their "form button" thingy