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

- 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-22-2017 03:40 AM
This works.. Thank you