how to make readonly assignment group field to editable for specific user.

swe
Tera Contributor

I want to make assignment field editable for specific group of user.

1 ACCEPTED SOLUTION

Martin Ivanov
Giga Sage
Giga Sage

you can use onLoad client script:

if (g_user.userID == 'your user sys_id'){

g_form.se­tRe­adO­nly­(<field_name>­,false);

}

This page might be helpful if you wonder how these methods work.

This will work if the field is set to read only from the field definition or with CS/UI policy. Will not work if the field is read only due to ACL. In this case, you will need to modify the ACL.

Please mark Correct and Helpful if my answer helps you resolve your issue. Thanks!
Martin Ivanov
Community Rising Star 2022


Please mark Correct and click the Thumb up if my answer helps you resolve your issue. Thanks!
Martin Ivanov
ServiceNow MVP 2023, 2024

View solution in original post

5 REPLIES 5

victoria147
Giga Contributor

Hello, have you figured out a method to enable other users to edit the assignment group? I am responsible for managing the team called "Enjoy This Site," and in order for team members to contribute and share their suggestions, I need to make the group assignment editable for them.