Set task fields to read-only

anthonycata
Kilo Contributor

I received a requirement to make all fields on a task 'Read Only' whenever it is assigned to a specific Assignment Group. I managed to implement this using a Client Script; however, the 'State' field remains editable. Does anyone know why this might be happening or how to fix it? (Note: We are using the Zurich version).

 

2 REPLIES 2

k_lutz
Giga Sage

Hi @anthonycata 

 

Most likely because there is an ACL on the state field for the "task" table you mention and the client script isn't going to override that.

Dev_Snow_ITSM
Tera Contributor

A quick look through dictionary attributes indicates one called RestrictTo. I haven't used it before, but it looks like it might do what you need. It appears to be some type of redirection (you'll need another field with comma separated field names apparently.) Not sure, as I said, haven't used it before.



Dictionary Attributes - ServiceNow Wiki