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 the "Ui action" button

Pavan Kumar28
Tera Contributor

Hi All,

We have a ui action button(close task) in the change task table. Now, I want hide this ui action button on the change task form when the parent(change request) is in review state.  Can anyone please suggest me how to achieve this.

PavanKumar28_0-1738234466540.png

 


Best Regards,
Pavan. 

1 ACCEPTED SOLUTION

NagaChandaE
Kilo Sage

Hi @Pavan Kumar28 

 

Add this line in condition field in ui action 

 

&& current.change_request.state!= 0Screenshot 2025-01-30 at 7.01.18 PM.png

 

If my response has helped you hit helpful button and if your concern is solved do mark my response as correct.

 

Thanks & Regards
Naga Chandan

 

 

View solution in original post

6 REPLIES 6

NagaChandaE
Kilo Sage

Hi @Pavan Kumar28 

 

Add this line in condition field in ui action 

 

&& current.change_request.state!= 0Screenshot 2025-01-30 at 7.01.18 PM.png

 

If my response has helped you hit helpful button and if your concern is solved do mark my response as correct.

 

Thanks & Regards
Naga Chandan

 

 

Hi @NagaChandaE ,

Since it is an OOB UI action, do I need to create a new UI action, or can I add the condition directly to the OOB one?

Best regards,
Pavan.

Hi @Pavan Kumar28 

Yes, You have to create a new ui action and make inactive oob ui action.

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Pavan Kumar28 

 

So logically before a change moves to the review state, the task must be in the closed state, so you need to add a validation before making the change to review and check all tasks in the closed state, this is best from the process and platform side.

*************************************************************************************************************
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]

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