How to make the field Read only on Incident in self service view
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2017 12:59 AM
Hi All,
How to make the field (u_short_description) Read only on Incident form in self service view for all the Users ,except the users belongs to
CAB Approval Assignment Group and Database Assignment Group.
i.e., The short description field should be editable for the users belongs to Assignment Groups(CAB Approval and Database)
Any help would be appreciated .Thanks in advance.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2017 01:08 AM
Hey Robin,
Write a onLoad Client Script using this script -
if(gs.getUser().isMemberOf('Group_name') || gs.getUser().isMemberOf('Group_name'))
{
g_form.setReadOnly('field_name',true);
}
else
{
g_form.setReadOnly('field_name',true);
}
NOTE -
For view SPECIFIC, unchecked the Global field and write the VIEW name on VIEW FIELD.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2017 01:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2017 01:09 AM
Hello Robin,
This might have been answered in HERE: make incident fields readonly
Thanks,
Dravvy
Please Hit like, Helpful or Correct depending on the impact of the response
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2017 01:09 AM
Hi Robin,
You can use a UI policy for this requirement, Make sure you select view as self service and add your group condition. Once you create a UI policy, Setup a read ui policy action on the short description field
Thanks
Please Hit like, Helpful or Correct depending on the impact of the response