- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Good evening.!
How to edit this UI action button "Request approval" on sc_task table, under Approvers tab?
I want to either edit it to write a script or, remove it? Please help. (Also, please ignore the other "Request Approval" button on the context menu. That is a custom button.)
@Ankur Bawiskar @Dr Atul G- LNG @Viraj Hudlikar
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I think, We can’t hide a UI Action from the list Choice (like on sc_task) using a condition
However, we can disable the functionality of that UI Action instead.
I handled this by creating a Script Include to check the table name and then used it in the UI Action’s condition.
Script Include:
Ui action:
Result:
sc_req_item table:
sc_task table:
Regards,
Teja
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago - last edited 3 weeks ago
That UI Action will be on Approval table(The table that is linked to that related list) and not sc_task table
Check UI Actions on Approval table which has 'List Choice' checkbox to true and modify accordingly.
Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @Voona Rohila .
Thank you so much for your reply.
Since, this List choice button is also being used on RITM table, I don't want to modify the script. But how can we restrict this button to not be visible on sc_task table? Please check.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
You can modify Ui Action using below url, edit URL below Instated of Dev replace with your instance name
https://dev.service-now.com/sys_ui_action.do?sys_id=cc27b118c611227600a16605b1368aa4&sysparm_view=&s...
You can modify the data.
Thanks,
Vignesh
"If this solution resolves your issue, kindly mark it as correct."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @vignesh parthib
Thank you so much for your reply.
Since, this button is being also used on RITM table, I don't want modify the script. But how can we restrict this button to not be visible on sc_task table? Please check.
