The CreatorCon Call for Content is officially open! Get started here.

I have a requirement to reset the form fields to empty when UI Action 'Reset to Draft'

Trupti Krishnam
Tera Contributor

I have a requirement to reset the form fields to empty when UI Action 'Reset to Draft' .There is a UI Action button in the demand table that appears when the state changes to submitted or screening or qualified and for the rest of the stage when i click on reset to draft UI action all the form fields except the number has to set to empty.Please help me to achieve this

 

5 REPLIES 5

jameswoodfo
ServiceNow Employee
ServiceNow Employee

I was looking through the recommendations that you've gotten but would recommend against doing this as a UI Action. I would leave the current UI action as is and use an update business rule that looks to see if the state has changed to draft.

 

That being said, I do have a question for you: what is the actual business need for clear all of the fields except for number? Seems like you are going to lose a lot of information.

Principal Technology Consultant, Expert Services, CTA/CIS+