How to hide UI action once click on the ui action ?

prash4
Tera Expert

I have created a ui action and given some action to it. once the ui action is clicked it should hide on the form. 

how to achieve it, quick help would be really appreciated.

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@prash4 

based on your screenshot simply add this in condition field

current.major_incident_state == 'accepted' && !current.u_pageops

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

View solution in original post

5 REPLIES 5

Tai Vu
Kilo Patron
Kilo Patron

Hi @prash4 ,

We can set conditions to control the visibility of the button. Can you share more inside about what action has been taken?

 

Cheers,

Tai Vu

Hi @Tai Vu 

Thank you for your response appreciate it.

below is the condition,

 

 

Hi @prash4 

At line 20, we're updating the u_pageops field to True. 

So we can add one more condition to the UI Action to display the button only u_pageops is False.

current.u_pageops == false;

 

 

Cheers,

Tai Vu

 

Ankur Bawiskar
Tera Patron
Tera Patron

@prash4 

based on your screenshot simply add this in condition field

current.major_incident_state == 'accepted' && !current.u_pageops

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