how can we hide the priority 4 & 5 for sc_task table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2024 04:21 AM
how can we hide the priority 4 & 5 for sc_task table. However, we want these priorities to be appeared in other tables.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2024 04:24 AM
HI @VinayKumarA
You can do via ACL / BR but any reason to do this?
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2024 04:27 AM
This is a request from client to make these changes service request table.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2024 04:29 AM
@VinayKumarA You can create an onLoad client script to remove the priority 4 and 5 choices from sc_task table.
Here is the sample script.
function onLoad() {
// Get the field 'priority' on the sc_task form
var priorityField = g_form.getControl('priority');
if (priorityField) {
// Remove Priority 4 (low) and Priority 5 (Planning)
g_form.removeOption('priority', '4'); // Removes Priority 4
g_form.removeOption('priority', '5'); // Removes Priority 5
}
}
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2024 04:37 AM
Thanks. this worked but will it impact the existing active records? If any sc_Task still open with these priorities then priority will get blank for those records and we have open the records and manually select the priority.