How to Restrict or set Readonly on the List view of the Records using ACLs

RathanK
Kilo Guru

Hello Community,

Hope everyone is doing great.

 

We have a use case to restrict or make readonly on the List View. What would be the best approach for this to work on I wanted to do this with the ACLs.

 

My use case: We have 3 fields which is one is dependent on another, in some cases only 2 fields will be dependent. Lets say Field 1, Field2, Field 3. Here 3 is dependent on 2 and 2 is dependent on 1. If I select Field 1 and Field 2 the selected fields should become readonly or not editable on the List View. I hope that my requirement is clear, if not please feel free to connect with me so that we can solve this together.

 

Attaching the Screenshots for reference.

Here Info Type is Field 1, Info Qualifier is Field 2, Info Code is Field 3. Lets say if the condition has Info Type is CHR, Info Qualifier is SQC Info Text, Info Measure, UQC should not able to edit or readonly for the user.

 

RathanK_0-1752137740040.png

 

Looking forward to your earliest response, Thanks!

Regards,

Rathan K

If you found my response helpful, please give it a thumbs-up and designate it as solution accepted to support fellow developers and admins.


Regards,
Rathan K
3 REPLIES 3

Shruti
Mega Sage
Mega Sage

Hi,

Create list_edit ACL

Ex-

Shruti_0-1752138517212.pngShruti_1-1752138526583.png

 

G Ponsekar
Giga Guru

Hi @RathanK ,

 

have u tried creating ACLs with operation as list_edit on field that you want to make readonly

decision type = Allow if

with condition if Info Type is not CHR

 

Please mark correct if it is working for you!

 

Thanks,

GP

Ankur Bawiskar
Tera Patron
Tera Patron

@RathanK 

best way is block list edit for all 3 fields as they are dependent on each other.

Let user fill those on form.

You can use list_edit ACL on those fields and block the edit on list.

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