[wix-users] Hide Multiple Controls

Brian E brianke at gmail.com
Wed Nov 10 11:05:01 PST 2021


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


More information about the wix-users mailing list