how to make variables readonly on variable editior on task and ritm level

Community Alums
Not applicable

Hi Connections,

 

I have multiple ui policies on same variables a few, the issue is on the form the behaviour is working as expected, but on ritm and task level the variables are not becoming read-only more over the variables which is not visible is visible on ritm and task level. how to overcome this issue.

 

Rafmine_0-1696909201855.png

 

any help is appriciated.

Thanks in advance

 

Rafmine.

3 REPLIES 3

Community Alums
Not applicable

its not working 

Rafmine_0-1696917823634.png

 

Hi @Community Alums ,

 

can you check if those fields where set mandatory by you if yes plz add additional lines to your above code before making it readonly. Something like below.

 

g_form.setMandatory('field_name',false);
g_form.setReadOnly('field_name',true);

 

Mark my response helpful & accepted if it helped you resolve your issue.

 

Thanks,

Danish

Danish Bhairag2
Tera Sage
Tera Sage

Hi @Community Alums ,

 

In order to make fields read-only create a new UI policy or client & include all the variables which u want to be read only. Please ensure in this ui policy or client script u check the applies to Requested Item n applies to Catalog task checkbox to true & uncheck the applies to Catalog item .This will make ur variables as read only on both ritm n task level. No condition needs to be applied in this scenario.

 

In order to hide the unwanted variables which are visible on RITM n task level u need to again follow the same approach create a ui policy or client but this with specific condition in order for the variables to be hidden or visible false. Condition is mandatory .

 

Mark my answer helpful & accepted if it helps you resolve your issue.

 

Thanks,

Danish