how can I use ui action to hide button?What is the ui action visibility?

roop1
Kilo Contributor

how can I use ui action to hide  button?What is the ui action visibility?

 

1 ACCEPTED SOLUTION

Hi,

that's correct

The UI action will only be shown when incident is in Resolved state.

For all other states it will be hidden

UI Action condition evaluate when form loads

Happy learning

Regards
Ankur

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

View solution in original post

12 REPLIES 12

Hi,

Is this UI action on incident table? if yes then you need to use choice value for resolved from state field

update as below; 6 means resolved

current.state == 6

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

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

Sir if I have to display Close button only when i click on Resolve .

So can I use this Condition like this: current.state!=6;   ??? so for remaining state it would be hidden?

Hi,

that's correct

The UI action will only be shown when incident is in Resolved state.

For all other states it will be hidden

UI Action condition evaluate when form loads

Happy learning

Regards
Ankur

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