I want to enable/disable a text-box (stringParameter) on selecting/deselecting the check-box (booleanParameter) on the same page. Is it feasible? If yes - then how?

asked 18 Nov '11, 00:49

Ashesh%20Vashi's gravatar image

Ashesh Vashi
1111
accept rate: 0%


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.

link

answered 18 Nov '11, 04:32

juanjo's gravatar image

juanjo ♦♦
5.8k413
accept rate: 23%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×155

Asked: 18 Nov '11, 00:49

Seen: 940 times

Last updated: 18 Nov '11, 04:32