Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

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.

_____
Answers generated by GlideFather. Check for accuracy.

Nikhil Bajaj9
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.