How to make read only using ui policy by overriding the client script "Variable Editor Readonl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2025 05:23 AM
Hi team,
i have requirement to make variable on task should be read only so used OOB client script "Variable Editor Readonly" and have requirement to make read only when there is data so used the UI policy as below
but it is not working and making fileds editable
due to global client script "Variable Editor Readonly" which is on sctask table not due to catalog client script
so please suggest how to proceed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2025 06:01 AM
Just use your condition in the client script.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2025 06:01 AM
Hi @vamshi2 ,
In When to Apply did you selected catalog tasks?
Also, did you verify the values in ui policy script by using alerts?
Thanks,
Yaswanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2025 06:40 AM - edited 06-05-2025 06:43 AM
Hi @YaswanthKurre
yes i have did and UI policy is executing last but fields are editable
for admin it is working as expected approver field is read only when approver is added but for non admin it is not working it is editable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2025 07:18 AM
Hi @vamshi2
Set the Approver field to non-mandatory before making it read-only. A field must not be mandatory in order to be set as read-only.