- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2023 01:33 AM
I have a role with read access only to a custom table but I want to show paper clip in the form for that specific role.
All field should be read-only but paper clip should be displayed and role can attach files.
When I give write access to that role the paper clip is displayed but all the fields are editable which should not be.
I only want the role to have read access and can attach files to the form.
How can I achieve this?
Thank you.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2023 01:54 AM - edited 11-22-2023 01:55 AM
Hi,
In Addition to your current configuration create one more acl.
You need to create table.* ACL for Write access for your table and do not add your role. Add roles who can edit information of that table record.
Thanks
Anil Lande

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2023 02:38 AM
Yes, that is the only option. (if they want it)
But you can ignore it as users is not able to edit fields on form.
Thanks
Anil Lande

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2023 03:28 AM
Please check below link:
https://joshneri.us/serverside-hasroleexactly-in-servicenow/
Thanks
Anil Lande

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2023 01:54 AM - edited 11-22-2023 01:55 AM
Hi,
In Addition to your current configuration create one more acl.
You need to create table.* ACL for Write access for your table and do not add your role. Add roles who can edit information of that table record.
Thanks
Anil Lande
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2023 02:26 AM
Also the update button is displayed. Should i just edit the OOTB Update button and add condition for my role so that it wont show?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2023 02:38 AM
Yes, that is the only option. (if they want it)
But you can ignore it as users is not able to edit fields on form.
Thanks
Anil Lande
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2023 03:23 AM
But how can I hide this button though since the gs.hasRole method always returns true if you have admin role so it will be hidden for me as well also?