read-only a field in list view

Mr_X1
Tera Contributor

I wanted to make the "Request item" field read only on list view.

 Currently im using onCellEdit client script [ below code ], Its not getting save but i want the field to be Read-Only

function onCellEdit(sysIDs, table, oldValues, newValue, callback) {
var saveAndClose = false;
callback(saveAndClose);
}

Can you please show me how to make the field read-only

 

find_real_file.png

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

1) elevate your role as security_admin

2) create new list edit ACL on catalog task table and field as request_item

3) use advanced checkbox as true

4) admin overrides uncheck - means even admin cannot list edit

4) script as

answer = false;

find_real_file.png

Regards
Ankur

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

View solution in original post

13 REPLIES 13

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

you can use list_edit ACL for that field and make it readonly only on list

Regards
Ankur

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

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

1) elevate your role as security_admin

2) create new list edit ACL on catalog task table and field as request_item

3) use advanced checkbox as true

4) admin overrides uncheck - means even admin cannot list edit

4) script as

answer = false;

find_real_file.png

Regards
Ankur

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

Thank You Ankur, It worked. 

I have marked the answer as correct.

Glad to help

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