[wix-users] Hide Multiple Controls

Joel Budreau joel.budreau at gmail.com
Thu Dec 2 09:18:59 PST 2021


I don’t think so. It might have been possible using a for-loop and kind of <ControlRef> element so that all the conditions could be consolidated into once place in source, but no such ControlRef element is available.

- Joel

> On Nov 10, 2021, at 11:05 AM, Brian E via wix-users <wix-users at lists.wixtoolset.org> wrote:
> 
> Is it possible to hide multiple controls with one set of conditions by
> grouping the controls somehow?
> 
> I would like to hide/show different Controls based on a dropdown
> selection.  So if I select "iRecruit" from the dropdown, the iRecruit
> controls should be displayed and all other Controls hidden.
> 
>        <!-- Select API source -->
>        <Control Id="APISourceLabel"                  Type="Text"
> X="20"  Y="83" Width="100" Height="13" Text="URL:" />
>        <Control Id="APISourceComboBox"               Type="ComboBox"
> X="130" Y="80" Width="175" Height="18" Property="API_SOURCE_OPTIONS"
> ComboList="yes">
>          <ComboBox Property="API_SOURCE_OPTIONS">
>            <ListItem Value="1" Text="ApplicantStack"/>
>            <ListItem Value="2" Text="iRecruit      "/>
>            <ListItem Value="3" Text="Test Account  "/>
>          </ComboBox>
>        </Control>
> 
>        <!-- ApplicantStack API Information -->
>        <Control Id="ApplicantStackInstructions" Type="Text" X="25" Y="165"
> Width="300" Height="35" Transparent="yes" NoPrefix="yes"
>                  Text="Please enter the ApplicantStack REST Service
> credentials." />
>        <Control Id="URLInfoLabel"                    Type="Text" X="20"
> Y="83" Width="100" Height="13" Text="URL:" />
>        <Control Id="URLInfoEdit"                     Type="Edit" X="130"
> Y="80" Width="175" Height="18" Property="APPLICANTSTACK_API_URL" />
>        <Control Id="TokenLabel"                      Type="Text" X="20"
> Y="103" Width="100" Height="13" Text="Token:" />
>        <Control Id="TokenEdit"                       Type="Edit" X="130"
> Y="100" Width="175" Height="18" Property="APPLICANTSTACK_API_TOKEN" />
> 
>        <!-- iRecruit API Information -->
>        <Control Id="iRecruitInstructions" Type="Text" X="25" Y="165"
> Width="300" Height="35" Transparent="yes" NoPrefix="yes"
>                  Text="Please enter the iRecruit API credentials." />
>        <Control Id="UsernameLabel"                   Type="Text" X="20"
> Y="83" Width="100" Height="13" Text="Username:" />
>        <Control Id="UsernameEdit"                    Type="Edit" X="130"
> Y="80" Width="175" Height="18" Property="API_USERNAME" />
>        <Control Id="PasswordLabel"                   Type="Text" X="20"
> Y="103" Width="100" Height="13" Text="Password:" />
>        <Control Id="PasswordEdit"                    Type="Edit" X="130"
> Y="100" Width="175" Height="18" Property="API_PASSWORD" />
> 
> 
> Brian
> 
> If you can't explain it simply, you don't understand it well enough.  -
> Albert Einstein
> 
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/



More information about the wix-users mailing list