Hide order guide variables in choose options?

naveenmyana
Giga Expert

Hello Everyone,

I have created a variable set which I use in Order Guide and also in the catalog items that will be used in order guide.

Once I enter the data in variables of the variable set I am looking for a way to hide this variables in the variable set  in the 'Choose Options' section on Order guide because they are the same variables appears in the all catalog items of order guide and make the form look ugly.

I have tried the below onload script and its working only in describe needs section and cannot hide fields in Choose options.

function onLoad() {
//Type appropriate comment here, and begin script below
var item= gel("current_item");
var guide = gel("sysparm_guide");
alert('start');
if (item != null && guide != null && item.value == guide.value)
g_form.setMandatory('requested_for',false);
g_form.setDisplay('requested_for',false);
}

Any suggestions?

find_real_file.png

find_real_file.png