Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

how can we hide the priority 4 & 5 for sc_task table

VinayKumarA
Tera Contributor

how can we hide the priority 4 & 5 for sc_task table. However, we want these priorities to be appeared in other tables.

7 REPLIES 7

Dr Atul G- LNG
Tera Patron
Tera Patron

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]

****************************************************************************************************************

This is a request from client to make these changes service request table.

Sandeep Rajput
Tera Patron
Tera Patron

@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.

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.