Hide variable field in an item

Sebastien C
Tera Expert

Hi,

 

I need to hide several variables from an item if a select box return a specific value.

My setup in attachment.

wrong result: even if I select Luxembourg in Front-End, Equipment variable doesn't disappear from the request.

 

Kind regards, 

 

1 ACCEPTED SOLUTION

You can use a Catalog UI Policy to hide a section in this way, as long as none of the variables in order after Container Start and before Container End are not mandatory.  Selecting Mandatory False on the UI Policy Action will make/ensure none of the variables in the section are mandatory, and will hide the entire section.

View solution in original post

6 REPLIES 6

Brad Bowman
Kilo Patron
Kilo Patron

Hi Sebastien,

Is your equipment variable Mandatory - either in the variable definition or through another policy or script?  If it is and is not populated, the UI Policy will not hide it - so you would also want to set Mandatory to false in the UI Policy Action.

Hi BradBowman,

 

Equipment variable is a "Container Start".

No mandatory notion for this type.

You can use a Catalog UI Policy to hide a section in this way, as long as none of the variables in order after Container Start and before Container End are not mandatory.  Selecting Mandatory False on the UI Policy Action will make/ensure none of the variables in the section are mandatory, and will hide the entire section.

Hi Brad,

 

Thank you for your help, it works perflectly.

 

Kind regards,

 

Sebastien