UI Action Condition

Graham18
Giga Expert

How do I make the condition check that the 'assigned_to' field is not blank.

ie: If the field is blank the UI Action will not show.

Thank you.

2 REPLIES 2

Anurag Tripathi
Mega Patron
Mega Patron

current.assigned_to!='';



PS: Condition of a ui action is always evaluated at server side only , even if its a client side ui action. Only challenge here would be if you need the ui action to show up when the value in assigned to is populated but the record is not saved.


-Anurag

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Graham,



You can add following line of code in the condition field of the UI Action



current.assigned_to != '' && current.assigned_to != "undefined"



Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.


Thanks


Ankur


Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader