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

Checked no other Script is written on this table.

Checked V and O was alreqady in caps

unchecked the isoltate checkbox

Still not working

@VIKAS MISHRA  you can try this also

function onLoad(){
    try{
          //Get the 'Variables' section
          var ve = $('variable_map').up('table');
          //Disable all elements within with a class of 'cat_item_option'
          ve.select('.cat_item_option', '.slushselectmtm', '.questionsetreference').each(function(elmt){
                elmt.disabled = true;
          });
          //Remove any reference or calendar icons
          ve.select('img[src*=reference_list.gifx]', 'img[src*=small_calendar.gifx]').each(function(img){
          img.hide();
          });
          //Hide list collector icons
          ve.select('img[src*=arrow]').each(function(img){
                img.up('table').hide();
          });
    }
    catch(e){}
}

 

Just copy pasted your script to my client script but still not working

BharathChintala
Mega Sage

@VIKAS MISHRA  can you check any other script conflicting like you wrote on catalog client script to applies on requested item and task check boxes

I already made those preivious script as inactive. do not  know now why its happening