how to make a field visible only to a particular group

burmakranthi
Tera Contributor

how to make a field visible and editable ,only to a particular group

3 REPLIES 3

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Burma,



You can have a client script where you can make the field read-only and visible based on the roles.


http://wiki.servicenow.com/index.php?title=Client_Scripts


In the if condition check the role of the user and based on that you can make the field readonly or visible as per your req.


burmakranthi
Tera Contributor

only the group members should be able   see the field, not even the login user and requestor should be able to   edit the field


You can do client script+glideAjax and return from the server true or false if the logged in user is member of the group..Based on that make the field readonly or visible at client script.