ACL: When a record is read only , make the related list as read only

Snehal Madakatt
Mega Sage

Hi ,

 

I want to make as read only related lists of a record which is read only. ACL is used to make the record read only, but the some related lists are editable.

As of now the related list is editable. The users can make changes to related list by using the buttons NEW, EDIT,etc.

 Example:

SnehalMadakatt_0-1706856666793.png

Can some one suggest how to make the related lists also as read only..

 

Regards 

Snehal

 

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@Snehal Madakatt 

why not handle the visibility of New and Edit based on the value of parent field?

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

There are many different tables and many different groups for wch we have to make the record read only. I have used ACL to make record read only

Snehal Madakatt
Mega Sage

Any Suggestion on this please.

piyushsain
Tera Guru
Tera Guru

Hi @Snehal Madakatt 

You have to write an ACL with Operation as "list_edit" on the Related List Table. In the ACL specify the roles and use script below which is on Change table with problem table related list:

Type - record


Operation - list edit


Name -> problem *

 

if(current.parent!='' && current.parent.getDisplayValue().indexOf('CHG') >-1)
{
answer=false;
}

 

 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Regards,
Piyush Sain