users with one of the role should be able to edit the field in list view.

Mahesh033
Tera Contributor

Hi ,

We have one field in list view it is read only .and users with one of the role should be able to edit it.

can we achieve it by Business rule. kindly help .

 

1 ACCEPTED SOLUTION

Hi,

if it's readonly at dictionary level you cannot do anything to make it editable by using ACL etc.

Steps to do

1) Don't make it readonly at dictionary level. uncheck that readonly checkbox

2) create onLoad client script/UI policy to make it readonly on form level if you wish to do so

3) create list_edit field level ACL on that field of the table and in the roles section give the role

This will work fine.

Regards
Ankur

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

View solution in original post

11 REPLIES 11

Shree3
Tera Expert

Hello Candy,
Is there any specific reason to go ahead with BR? You can achieve this by writing an ACL as follows :
Type : Record
Operation: list_edit
Name : table_name, field_name
Required Role : your_role
I think this should help.

Mahesh033
Tera Contributor

Hi @Shree 

Thank but its not working but creating acl in the same way you said.field is readonly in dictionary level for eveyone.

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

how it is currently set as Readonly in list view?

Is it because of some list_edit ACL?

Is that field by default readonly at dictionary level?

Regards
Ankur

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

Hi @Ankur Bawiskar 

It is default readonly at Dictionary level.

 

Hi,

if it's readonly at dictionary level you cannot do anything to make it editable by using ACL etc.

Steps to do

1) Don't make it readonly at dictionary level. uncheck that readonly checkbox

2) create onLoad client script/UI policy to make it readonly on form level if you wish to do so

3) create list_edit field level ACL on that field of the table and in the roles section give the role

This will work fine.

Regards
Ankur

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