The CreatorCon Call for Content is officially open! Get started here.

how to make all the variables read only on SC tasks after the task gets closed

VIKAS MISHRA
Tera Contributor

On the task form i can see all the variables are still editable after the task gets closed, how to i make them not ready only and i want this for any kind of SC_task raised in any cataloge item.

 

VIKASMISHRA_0-1676658539221.png

 

16 REPLIES 16

I will check with vendor like why this script is not working , meantime can you please help me with other code that i need to add here only in this on load client script.

Actually i need to make all the variables read only acept 2 different cataloge items tasks and for one another cataloge i need to make only few variables read only

@VIKAS MISHRA 

you can write below if client script 

var item = g_form.getValue('item');

if(item !='sysidof item1' && item != 'sysidid ofitem2'){

write read only script here

}

 

If my inputs have helped with your question, please mark my answer as accepted solution, and give a thumb up.
Bharath Chintala