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.

Custom UI action

jimk32
Kilo Contributor

Hi Community,
I need to create a new UI Action with name "Revert Change(s)", the functionality:
if we change any field value, so before saving record, by clicking this button
 button should revert all the changes we applied on incident table . i tried this:

jimk32_0-1719494513278.png

 

 

 

thanks in advance!

1 REPLY 1

Prana Krushna
Giga Guru

@jimk32 Please remove "!current.update()" and add the script "action.setRedirectURL(current);". It will reload the page and changes will not be saved.

Mark this helpful if it works for you