how to lock the variable field on sctask ?

chercm
Mega Sage

I have created a sctask form but the variable field seems to be changeable 

 

how to lock it ?

 

chercm_0-1703258469489.png

chercm_1-1703258492772.png

 

 

1 ACCEPTED SOLUTION

SunilKumar_P
Giga Sage

Hi @chercm, You can try the below catalog client script that applies to requested items and catalog tasks to make the complete variable editor ReadOnly.

 

function onLoad() {
   g_form.setVariablesReadOnly(true);
}
 
If you want to make the particular variable ReadOnly then you can create a catalog UI policy that applies only to RITMs and SCTASKs.
 
Regards,
Sunil
 

View solution in original post

5 REPLIES 5

H S B
Giga Guru

You need to be a bit more clear about your requirement.

 

What do you mean by lock it? If you lock it, then how would someone select what item they are requesting for? Or is it like you want to set the variable to a particular hard-coded value only all the time?