make relatated list view field readonly

VSN
Tera Expert

Hellow,

i have a requirement to make choice field in the related list view read only. 

whith using ACL's.

3 REPLIES 3

faisal_waryum
Tera Expert

hey 

  1. Create a new ACL record with the following settings:

    • Name: Give it a descriptive name like "Read-only Related List Choice Field ACL".
    • Application: Select the application where your choice field resides.
    • Operation: Choose "Read" operation.
    • Type: Choose "Record".
    • Conditions: Define conditions to target the specific related list view where the choice field is present, typically by specifying the table and related list field.
    • Role: Specify the roles that you want to grant read access to. Usually, you would specify the roles that need to view the related list but not modify the choice field.
  2. Define Script: In the script section of the ACL record, write a script that checks if the current operation is trying to read the choice field. If it is, set the "canRead" variable to false to deny read access.

Sujatha V M
Kilo Patron
Kilo Patron

@VSN 

 

- If its for a particular field, refer the link below ; 

 

https://www.servicenow.com/community/developer-forum/is-there-any-way-to-make-selected-fields-read-o...

 

- If its for complete related list, Navigate -> List View -> Click on the Column Options -> Configure -> List Control

 

From the drop down, select "Disable List Editing". 

SujathaVM_0-1712852007626.png

 

Before list edit : 

 

SujathaVM_1-1712852050800.png

 

After list edit:

 

 

SujathaVM_2-1712852149025.png

 

Please mark this as helpful and accept it as a solution if this resolves your query.

Thanks,

Sujatha V.M.

 

Please mark this as helpful and accept it as a solution if this resolves your query.
Sujatha V.M.

Jayant_M
Kilo Sage

Hi @VSN ,

 

If you want to restrict it via ACL, you can create list_edit ACL attached below

Jayant_M_0-1712853644651.png