Grey out "No longer Required" option from the Approval drop down "Action on selected rows"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2023 01:46 AM
Hi,
I have a requirement to grey out/hide "No longer Required" option from the Approval drop down from "Action on selected rows" and this should be hidden only to tickets generated from a particular catalog item. How can I achieve this? Any suggestions would be greatly appreciated. Here is the screenshot of the requirement. I have to hide "No longer Required" option which is highlighted in yellow for tickets generated from a particular catalog item. Please guide me.
Thanks,
Saran.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2023 10:30 PM
Hi @Community Alums
Let's set the condition in your UI Action to achieve it.
1. Open the UI Action. You should be able to find the UI Action with the below URL.
2. Add the condition below to make it available for specific catalog item.
current.sysapproval.ref_sc_req_item.cat_item == '<your_catalog_item_sys_id>'; //replace your catalog item sys_id
You can create a system property to store the catalog item sys_id to avoid hard-coding.
Cheers,
Tai Vu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2023 10:59 PM
Hi @Tai Vu
I have used the above condition in the UI action and the change is applied to all tickets from all catalog items but I want to hide this UI action only for a specific catalog item. Could you please help me out? Here is the screenshot for your reference.
Thanks,
Saran.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2023 07:45 AM
Hi @Community Alums
If you'd like to hide the UI Action, the condition should be not equal. So let's change it.
From
current.sysapproval.ref_sc_req_item.cat_item == '2831b98ea11a5180cdd7ea38bc3b7e90';To
current.sysapproval.ref_sc_req_item.cat_item != '2831b98ea11a5180cdd7ea38bc3b7e90';
Cheers,
Tai Vu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2023 10:02 PM
Hi @Tai Vu
If I use the not equal to in the below condition, the 'No longer required' button is still visible for all catalog items.
ApprovalListChoiceCondition() && current.sysapproval.ref_sc_req_item.cat_item != '2831b98ea11a5180cdd7ea38bc3b7e90'
If I use the below equal to in below condition, 'No longer required' button is not visible to all catalog items.
ApprovalListChoiceCondition() && current.sysapproval.ref_sc_req_item.cat_item == '2831b98ea11a5180cdd7ea38bc3b7e90'
It is weird! It is working the opposite and moreover the change is applied to all catalog items.
But my requirement is to hide for a specific catalog item. Any suggestions please.
Here is the screenshot for your reference.
Thanks,
Saran.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2023 01:47 AM
