- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-31-2017 01:05 PM
Client Callable UI Actions in the Condition Box what can I use for Condtions? Can I use current or do I have to use g_form
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-31-2017 01:32 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-31-2017 01:08 PM
Hello Philp,
You can use current in the condition box to validate the fields from the current form i.e ex : current.approval=='not requested'

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-31-2017 01:09 PM
If you are talking about the visibility of the UI Action based upon conditions, those conditions use current.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-31-2017 01:10 PM
UI Actions can act as Client Side or Server side. If you select client button as true, your UI action will act as client. Then you should use "g_form" function.
if client is unchecked, then it act as Server side.
Please refer this,
http://wiki.servicenow.com/index.php?title=UI_Actions#gsc.tab=0

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-31-2017 01:19 PM
I think Phillip is talking about the condition field on the UI action and not the condition at the script level.
@Philip, Please refer the below blog for more info on client and server code in UI action.
https://www.servicenowguru.com/system-ui/ui-actions-system-ui/client-server-code-ui-action/