How to make fields mandatory in a variable set based on another variable set value

Shaik nabi khaj
Tera Expert

Hey all,

I have there are four variable sets on a catalog form.

--- Technical Information variable set :- it consist of a field called 'request type'.

      request type---select box----choices are shown in below  pic.

--- Create package variable set ,Deploy package variable set  and patch deploy variable set  :- they consist of a bunch of fields as shown in below pic.

Now the requirement is whenever i select the create package it should be show only create package field  and make some fields mandatory in it at the same time.

If i select deploy package  it should be show only create package field  and make some fields mandatory in it at the same time.

Likewise patch deployment also.

kindly provide ur inputs.

@Ankur Bawiskar 

 

 

 

Best Regards,

Shaik Nabi Khaja.

 

3 REPLIES 3

Brad Bowman
Kilo Patron
Kilo Patron

It doesn't matter if any of these variables are inside a variable set or not - as long as it is a single row variable set.  The ways to show/hide variables and make variables mandatory remain the same - a Catalog UI Policy or a Catalog Client Script.  UI Policy is best practice and recommended for these 2 actions.  To affect all variables in the variable set, you can use one UI Policy Action selecting the variable set name instead of a variable name, but if only some variables should be made mandatory, then you'll need a UI Policy Action for each variable.

Hi brad,

Yes it is working but when we select none condition it is not working.

Kindly provide ur inputs.

 

Best regards,

Shaik.

asifnoor
Kilo Patron

Hi,

As Brad suggested already, catalog ui policies is the way to go about it. Technically if al these variables aer in the same catalog item, thne you can write a catalog ui policy with the variable check and do the required show/hide of other variables.