Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to hide UI action from UI policy ??

Hritik1
Tera Contributor

Hello Community,

I have a requirement as below :

I wish to hide custom UI action on change record table. Whenever the condition is 'Subject to Gxp == Yes' the ui action must disable/hide.

I have the below code prepared for it :

find_real_file.png

The issue is it only hides the top button and not the bottom button. I even tried querying the button itself but no luck 😞 

Please help me achieve this requirement ...

 

1 ACCEPTED SOLUTION

suvro
Mega Sage

Set the condition in the condition field of the UI Action not via client script. (current.subject_to_gxp  == 'No')

find_real_file.png

View solution in original post

7 REPLIES 7

suvro
Mega Sage

Set the condition in the condition field of the UI Action not via client script. (current.subject_to_gxp  == 'No')

find_real_file.png

Condition is not working in list view

I have an out of the box UI action where I have conditions already mentioned and it is not allowing to type further code in this field, how can I accomplish the similar requirement in this case?