The CreatorCon Call for Content is officially open! Get started here.

Make fields read only on the list view

NishaB
Tera Expert

When on the default list view, the following fields should be present:

Number

Opened

Short Description

Caller

Priority

State

Category

Assignment Group

Assigned To

Updated

Updated By   

 

All fields in the list view are read-only   OR   The following fields are editable by the ITIL role: Short Description, State, Category, Assignment Group, Assigned To

5 REPLIES 5

sreeram_nair
Tera Guru

Make All Fields Read-Only

  1. Use ACLs (Access Control Rules):
    • Navigate to System Security > Access Control (ACL).
    • Create a new ACL for the table you are working on (e.g., incident).
    • Set the Operation to write.
    • Under the Condition section, specify the fields you want to make read-only (leave blank to apply to the entire table).

Allow ITIL Role to Edit Specific Fields

  1. Field-Level ACLs:

    • Navigate to System Security > Access Control (ACL).
    • Create an ACL for each editable field (e.g., Short Description, State, etc.).
    • Set the Operation to write and specify the field in the Field field.
    • Use a condition like this to restrict editing to the ITIL role:
       
    •  
  2. List Layout Configuration:

    • Navigate to List Layout:
      • Right-click on the column headers of the list view and select Configure > List Layout.
      • Add the required fields to the layout (e.g., Number, Opened, etc.).

ɪꜰ ᴍʏ ᴀɴꜱᴡᴇʀ ʜᴀꜱ ʜᴇʟᴘᴇᴅ ᴡɪᴛʜ ʏᴏᴜʀ Qᴜᴇꜱᴛɪᴏɴ, ᴘʟᴇᴀꜱᴇ ᴍᴀʀᴋ ᴍʏ ᴀɴꜱᴡᴇʀ ᴀꜱ ᴛʜᴇ ᴀᴄᴄᴇᴘᴛᴇᴅ ꜱᴏʟᴜᴛɪᴏɴ ᴀɴᴅ ɢɪᴠᴇ ᴀ ᴛʜᴜᴍʙꜱ ᴜᴘ.




ʙᴇꜱᴛ ʀᴇɢᴀʀᴅꜱ


ꜱʀᴇᴇʀᴀᴍ

NishaB
Tera Expert

Can you please explain on how to make certain fields for e.g . short description editable by only itil role. For all other users , it has to be read only. I'm not getting it. I have made all the fields read only. But for the Caller field, if the user is admin it is editable. But for all other users, it is read-only. Why is it so? Can u please solve these two issues?

 

Hi @NishaB ,

 

You need to create filed level write acl for all fields which you want to make editable.

use script in acl like below.

(gs.hasRole('itil'))

 

-------------------------------------------------------------------------

If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.


Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay

-------------------------------------------------------------------------

Ankur Bawiskar
Tera Patron
Tera Patron

@NishaB 

you will have to use list_edit ACL on those fields individually and add itil role in roles section

But why to allow editing OOB system fields Updated, Opened, Updated By, Number?

Is this a valid business requirement?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader