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

Kalaiarasan Pus
Giga Sage

Do you have custom buttons on RITM?


Yes.. it is a custom button kalai


Hi Karthik,



You can write condition to show the button only if "current.approval== 'Requested". Once approval is accepted/rejected, the approval field never has same value and it should work.



Let me know how it goes.


katz2
Tera Contributor

This is already present in the script



but sometime is is executing.. hene planning to hide it once the state changes