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

 

9 REPLIES 9

Hi harish,

I am using the same variable set in the Describe needs step and for the catalog items which will come in the Choose options.

Is it the issue here???

 

Hi

Try using UI policies to hide the variables in the specific catalog items instead of order guide.

Brent Sutton
Mega Sage

Hi Naveen,

I know this is a slightly older post but please take a look at my solution provided at the following link.

Hide Cascading Variables

I think this information will solve your issue.

Let me know if this worked for you.

Brent

P.S. If my suggestion helped then please mark as helpful and/or correct so other community members can benefit from this information.

Himanshu Dubey
Giga Guru

Hi 

there is no need to write any script

You have to use catalog UI policy right click on choose option:

find_real_file.png

 

Then don't set any condition in UI policy just write the short description  and save the form 

find_real_file.png

 

then use UI Policy Action write 4 UI policy action in ui policy action select your variable set and set visible false for each one

 

 

find_real_file.png

Please Mark Correct and Helpful if it helps

Thanks and Regards

Himanshu Dubey

DxSherpa

 

Tushar Walveka2
Tera Guru

 

TusharWalveka2_1-1695379043531.png