How to make read only for user record in incident form using client script for specific role
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2025 03:02 AM
Hi Community,
Good day!!!
Requirement is to make read only for entire user record which is visible from the caller field as shown below, including related list records (groups, users, delegates, subscriptions) i have tried below client script it is making read only for all the users including admins, it should work for "UserRead" custom role.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2025 06:57 AM
If you already have a role, why not just go the easy way: create an ACL for it, so they can only read the user table and it's related lists. Client scripts can be passed by through browser development tools and also a moment before the form is completely loaded.
An ACL will prevent anything from being edited.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark