- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-21-2017 02:18 AM
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.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
-
Team Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-21-2017 03:49 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-21-2017 02:20 AM
Do you have custom buttons on RITM?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-21-2017 03:17 AM
Yes.. it is a custom button kalai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-21-2017 03:36 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-21-2017 04:33 AM
This is already present in the script
but sometime is is executing.. hene planning to hide it once the state changes