We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

servicenowv ui action click

servicenow14710
Tera Expert

how to know if ui action button is clicked or not from client script 

1 ACCEPTED SOLUTION

Not applicable

Hi @servicenow14710 ,

you can check in the onSubmit client script which UI action got clicked.

Please follow the steps mentioned: Identifying UI Action Clicked (The Right Way)

 

View solution in original post

2 REPLIES 2

Not applicable

Hi @servicenow14710 ,

you can check in the onSubmit client script which UI action got clicked.

Please follow the steps mentioned: Identifying UI Action Clicked (The Right Way)

 

@Community Alums : I have two UI Actions with same name on eis active and another is not, So when i give the name it is not working , but instead i gave action name of that UI Action in if condition and it worked.

var action = g_form.getActionName();
   if(action == 'name')

Please let me know if action name is used instead of name. Thanks.