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

Harish KM
Kilo Patron
Kilo Patron

Hi currently how are you setting it readonly? You can add a condition there for this user

Regards
Harish

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

Martin Ivanov
Giga Sage
Giga Sage

Hi. If my answer has helped you resolve your issue, Please mark Correct and Helpful. This way, other users may also benefit from the thread. 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

Landon Colton
Kilo Explorer

Hi, have you found any way to make the assignment group editable for other users. As I am also managing the team by the name of play this game. For which I need to make our group assignment editable for different users so that the team members could contribute in it and share their suggestions.