How do I enable/disable a stringParameter on selecting/deselecting a booleanParameter on the same page?

Answered

Comments

1 comment

  • Avatar
    juanjo

    To do that, you would need to use a <booleanParameterGroup>, introduced in InstallBuilder 8:

    <booleanParameterGroup>
       <name>advanced</name>
       <description>Advanced Mode</description>
       <validationType>always</validationType>
       <value>0</value>
       <parameterList>
          <choiceParameter>
             <name>emailNotifications</name>
             <value>always</value>
             <description>Email notifications</description>
             <optionList>
                <option description="Always send notifications" text="Always" value="always"/>
                <option description="Never send notifications" text="Never" value="never"/>
             </optionList>
          </choiceParameter>
          <stringParameter name="subject" description="Notifications Subject" value="[NOTIFICATION] #"/>
          <directoryParameter description="Cache Dir" name="cacheDir" value="${system_temp_directory}/cache"/>
       </parameterList>
    </booleanParameterGroup>
    

    Please note this widget includes the checkbox so you have to remove the <booleanParameter> you are currently using. You can find additional information as well as screenshots here.

Please sign in to leave a comment.