How to hide Approve button and Reject button on RITM Form

katz2
Tera Contributor

Hi All,

We want to hide Approve & Reject button on RITM from once the action is performed i.e; Once user approves / reject using the respective button they should be disabled or hidden on the form.

Request your suggestions.

1 ACCEPTED SOLUTION

Harsh Vardhan
Giga Patron

Hi Karthik,



if you do some action through "Approve" or "Reject"   button then some state get change or update. so you must build some logic in your ui action condition field to make your ui action visible on those state value


curren.state=='3' || current.state=='4'     // i assumed 3 and 4 value is not complete and reject state.


View solution in original post

11 REPLIES 11

Hi Karthik,



In that case, you can change the state to some value once the ui action is clicked ( Approve OR Reject) and then in your action you can write the condition for state != xx value



Let me know if it works.


Dave Smith1
ServiceNow Employee
ServiceNow Employee

karthik m wrote:



Yes.. it is a custom button


Then work is unfinished - it's not about what the button does, it's also about under what conditions the button should appear.



The UI Action needs a condition showing these buttons when the RITM is still awaiting approval.


ajaylimaye
Tera Contributor

Hi karthik,



If you are having custom buttons you can just make them inactive.



If you are using custom app or any other application and want to hide the button then you could just create a button with same name and action name and put condition as false and the buttons will be hidden. This will solve your issue.



find_real_file.png


Harsh Vardhan
Giga Patron

Hi Karthik,



if you do some action through "Approve" or "Reject"   button then some state get change or update. so you must build some logic in your ui action condition field to make your ui action visible on those state value


curren.state=='3' || current.state=='4'     // i assumed 3 and 4 value is not complete and reject state.


This works.. Thank you