Convertigo Public Knowledge base

How to programatically reset Form inputs after Submit?

If you wish to reset form inputs after the onSubmit event, do the following:

  • Add a customAction component under the onSubmit event of your Form.

 

  • in your newly created customAction component, write the code :

    event.target.reset();

 

You may have a look at the sample project here: https://github.com/convertigo/c8oprj-sample-form-submit Ready to be imported in your Convertigo Studio

(c) Convertigo 2023 https://www.convertigo.com