How to get setTimeout function in webflow form submission
Hi all,
On the profile page, after entering the details and clicking the submit button, it redirects to the people list page where the profile items are displayed.
However, the page transitions too quickly, and the profile data doesn't appear until the page is reloaded. So, what I want is, when the submit button is clicked, instead of immediately redirecting to the next page, I'd like it to wait for approximately 3-5 seconds before redirecting.
Can I get the JavaScript source code for this? Thank you.
Comments
5 comments
Hey there allinweb dave
I'm not sure what the form IDs and selectors are but you can probably try adding this.
// And the script goes something like this. You can modify the script as per your requirement
Let me know if this works with some tweaks and changes. Thanks :D
Thanks for reply
Unfortunetly, I can not use
in submit form beacuse of webflow's form....
Hey there allinweb dave
Yes you can definitely use onClick for your submit button. Here's how.
and in the same embed script you can write the `submitForm()` function.
Let me know if that clarifies your question. Thanks much.
Hi Kumar,
I solved it by applying the embed submit button as you recommended.
thanks a lot again!
Glad I could help! Have a great day.
Please sign in to leave a comment.