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.

Issue with UI action and Mandatory fields

kavyahv
Kilo Contributor

HI All,

I have a UI action where I am checking for mandatory true for 3 fields and alerting a message when the mandatory field is not filled.

Problem is that it required three clicks for UI action to work since ite   checks three times for mandatory.

Is there a way I can achive it in one click?

Please suggest

6 REPLIES 6

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Kavya,



Please go through the below blog and adjust your code accordingly.


Client & Server Code in One UI Action - ServiceNow Guru



Please let us know if you are blocked.


Beautiful.   Worked perfectly.   This is very useful.   Thank you.