Client Callable UI Actions Conditions? G_form or Current

elliott1philip
Tera Contributor

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

1 ACCEPTED SOLUTION

In condition field you have to use current


View solution in original post

6 REPLIES 6

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

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'


ccajohnson
Kilo Sage

If you are talking about the visibility of the UI Action based upon conditions, those conditions use   current.


Rasith1
Tera Expert

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


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/