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
Tera Guru

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

Viraj Hudlikar
Tera Sage

Hello @Pavan Kumar28  -

 

To Hide Ui Action if you open the same you will see field named condition you can place your condition as per your requirement and then if condition is met the ui action is showed over form else it is hidden.

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

 

Thanks & Regards
Viraj Hudlikar.

 

Ankur Bawiskar
Tera Patron
Tera Patron

@Pavan Kumar28 

add this in existing UI action condition.

Note: You are updating OOB UI action, which is not recommended

current.change_request.state.toString() != '0'

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader