How to make read only using ui policy by overriding the client script "Variable Editor Readonl

vamshi2
Tera Contributor

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

vamshi2_1-1749126021530.png

 

but it is not working and making fileds editable

vamshi2_2-1749126135565.png

 


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

5 REPLIES 5

Mark Manders
Mega Patron

Just use your condition in the client script.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

YaswanthKurre
Giga Guru

Hi @vamshi2 ,

 

In When to Apply did you selected catalog tasks?

YaswanthKurre_0-1749128438738.png

Also, did you verify the values in ui policy script by using alerts?

 

Thanks,

Yaswanth

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

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.