Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Reset form controller in ui builder

angeloorteg
Tera Contributor

Hi everyone.


I have a modal with a form and mutliple fields. 

In the modal i created a save and cancel button and both of them seem to work. 

However after saving, when I want to create another record, using the modal - it updates the previously create record. This for my understanding happens because the modal/form/instance was never really dropped on close modal. 

 

Do you have an idea , not using Glide Form, how to do that? 

How can I reset the instance after creation, so that a button press to create a new record will open the modal and form with sys id = -1.

 

I did try setting it to -1 after completion - still it wont affect, since the instance seems to keep the created record id no matter what i do..

 

Thank you guys 😕

 

0 REPLIES 0