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.

Clear the form field values when Reset to draft button is clicked

Sprankle
Tera Contributor

I have a requirement to clear the form field values on demand table when reset to draft is clicked ,As soon as the demand is reset to Draft they should clear to allow for the new ones created as the user works through the process.

6 REPLIES 6

@Sprankle 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Anand2799
Tera Guru

Hi @Sprankle ,

 

In the UI Action 'Reset to Draft', you can clear values before updating the record in the serverResetToDraft() function.

Anand2799_0-1759494346769.png

 

Thanks

Anand