UI Action Condition
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-10-2017 04:48 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-10-2017 04:50 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-10-2017 05:01 AM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader