Not able to reset form after submitting without refresh

I have a case where I need to reset a form after successfully submitting, but without page refresh

Is there any way to reach the requirement? Or any way to handle this edge-case?

Yes, using custom JS.
It’s a bit of a mission if you need to detect a successful submit prior to the reset.

  • detect successful form submit
  • force the form panel to stay visible, with css !important or by removing the display: none styling applied by webflow.js
  • manually clear or reset each of the input fields to the default values you want
1 Like

Hey there!

I just made a really easy solution which makes this possible - simply add in the script & an attribute to a button or link inside of your success state, and you’ll be able to reset the form.

Hope this helps!