- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2024 06:32 PM
I have a client script to make all the fields and variables on my catalog task read only when the task is closed. While it works on most of them, it doesn't seem to work on the reference field variables.
Can anyone advise how I can make those reference field variables read only as well?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2024 07:02 PM - edited 08-15-2024 07:04 PM
Hi @Abbottronix ,
There is already an OOB Client script written on sc_task table to make variableEditor read - only. Modify it according to your requirement.
Here, instead of making fields individually read-only, we make the complete variable editor read only.
If this information helps you, mark is as Helpful.
Regards,
Najmuddin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2024 07:02 PM - edited 08-15-2024 07:04 PM
Hi @Abbottronix ,
There is already an OOB Client script written on sc_task table to make variableEditor read - only. Modify it according to your requirement.
Here, instead of making fields individually read-only, we make the complete variable editor read only.
If this information helps you, mark is as Helpful.
Regards,
Najmuddin.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2024 07:05 PM
@Abbottronix Instead of handling this via a client script, you should use an ACL instead. ACL not only works at a form level but also works on List. You can define a read ACL on your table which checks the state of the record in condition builder and returns answer=false in the script field.