How to hide /show UI action Button in the UI policy or client script?

ramuv
Tera Expert

How to hide /show UI action Button in the UI policy or client script?

1 ACCEPTED SOLUTION

Dr Atul G- LNG
Tera Patron
Tera Patron

Check here

 

https://www.servicenow.com/community/service-management-forum/i-want-to-hide-an-ui-action-button-by-...

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

View solution in original post

4 REPLIES 4

Dr Atul G- LNG
Tera Patron
Tera Patron

Check here

 

https://www.servicenow.com/community/service-management-forum/i-want-to-hide-an-ui-action-button-by-...

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Anurag Tripathi
Mega Patron
Mega Patron

Hi,

Why are you not using the UI Action Conditions?

-Anurag

Jitendra Diwak1
Kilo Sage

Hi @ramuv,

 

You can define the condition in UI Action. Suppose you have state is pending then it shouldn't be shown then you can type this condition in condition field like current.state ='pending give the backend name here'

 

Please accept my solution if it resolves your issue and thumps 👍 up. 

 

Thanks 

Jitendra 

Please accept my solution if it works for and thumps up.