How to set attachment type fields to read only in UI

Mike161
Kilo Contributor

Firstly, I created a table and some fields. Such as: table: table1,field1: title(String), field2: body(String), field3: file(File Attachment).... And the type of field3 is File Attachment. 

Secondly, I wanted to create a UI policy that sets the field1 and field3 read-only when certain conditions are met. So I used UI Policy Action to set up these two fields. After setting, the field1 is read-only , but field3 is not read-only.

Why? And how to set field3 to read only in UI Policy?

Please help, Thanks.

find_real_file.png

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Mike,

setting read-only won't work for field of type File Attachment

So the only way forward is to have created individual field level WRITE ACL on that field and give the condition

Regards
Ankur

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

View solution in original post

5 REPLIES 5

sachin_namjoshi
Kilo Patron
Kilo Patron

you can configure field ACL to make attachment field type read only.

 

Regards,

Sachin

thank you!

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Mike,

setting read-only won't work for field of type File Attachment

So the only way forward is to have created individual field level WRITE ACL on that field and give the condition

Regards
Ankur

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

Thank you!