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.

how to put condition in ui action to make it visible only when all the mandatory fields are filled.

NANDANG
Tera Contributor
 
3 REPLIES 3

GlideFather
Tera Patron

Hi @NANDANG,

 

please provide more details, this isn't sufficient.

_____
This reply is 100 % GlideFather and 0 % AI

Nikhil Bajaj9
Tera Sage
Tera Sage

Hi @NANDANG ,

 

Did you mean to display an UI action only when all fields are filled?

 

Regards,

Nikhil Bajaj

Please appreciate my efforts, help and support extended to you by clicking on – “Accept as Solution”; button under my answer. It will motivate me to help others as well.
Regards,
Nikhil Bajaj

ServiceNow Rising Star-2025

ankitbanerj
Tera Expert

Hi @NANDANG , Please check the attached screenshots and try to replicate the following.

javascript: new global.VaidityCheck().checkMandatoryFields(current)

Screenshot 2025-08-15 at 8.30.55 PM.pngScreenshot 2025-08-15 at 8.31.22 PM.pngScreenshot 2025-08-15 at 8.31.40 PM.pngScreenshot 2025-08-15 at 8.32.06 PM.png
 

Best regards,
Ankit B


If this solution worked for you, kindly mark it as Accepted Solution and give it a Helpful rating to support the community.