servicenowv ui action click

servicenow14710
Tera Expert

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

1 ACCEPTED SOLUTION

Community Alums
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

Community Alums
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.