I'm in the process of building a number of forms using Sitecore Forms in Sitecore 9.0. All of the forms will be displayed in a modal dialogue, and all forms will show a thank you message, using the approach discussed here:
On closure of the modal dialogue I would like to reset the form so that it can be used again.
I have tried a number of approaches but none of them work, including:
- The original data entered is what the form gets reset to.
- When submitting the form, it updates the original record in the forms db rather than creating a new one
Is there an ajax call or js method I can call to reload and reset the form?
N.B. Just to be clear; this question is not a js/jQuery question but is a Sitecore forms related question.
Any thoughts or help would be much appreciated.