How to disable the ui action button once it get submitted?

DINESH CHINNAD1
Giga Expert

My requirement is,

If state = "Closed", I have to show the UI Action "Re-open" button. Once the user clicks the "Re-open" button i need hide that. Because only once i need to show reopen button visible to user. The second time it should hidden.

Only once i need that Reopen button avialable the second it should be hidden

Thanks in Advance,

Thanks and Regards,

Dinesh Chinnadurai

1 ACCEPTED SOLUTION

In that case you should use a flag. Flag will nothing but just a field on your table that will not be on your form. Make it true by default and make it false once the reopen is clicked.



And the condition on reopen becomes



current.state== 'state value when it should be visible'   && current.flag=='true'


-Anurag

View solution in original post

11 REPLIES 11

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Dinesh,



You can add the condition in the UI Action button to hide it. You can disable the action on the form with the condition.


Hi Pradeep Sharma,



Thanks for quick response.


How i can hide that and what condition i have to use to hide?


Hi Dinesh,



So once the user clicks open I think you are changing the status right so you can show the UI action only in few status as per your requirement.


Harish Murikina
Tera Guru

You can give condition on "re open" button"




current.state == 'resolved' // If the ticket is resolved you can re open