Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

how to do this question

user_20
Tera Contributor

The 'priority' field on the incident form should be editable only by users with the 'manager' role

6 REPLIES 6

AndersBGS
Tera Patron
Tera Patron

Hi @user_20 ,

 

As @Ankur Bawiskar  has correctly stated, priority is based on impact and urgency according to priority matrix. If you have this requirement, then you could create an ACL for impact and urgency based on defined role. But if you do this, then you also need to take into consideration that no one else would be able to change these fields. 

 

If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.

Best regards
Anders

Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/

pranita-24
Tera Guru

Hi @user_20 
please try by using client script

function onLoad() {
if (!g_user.hasRole('manager')) {
g_form.setReadOnly('priority', true);
}
}