1 Reply Latest reply on May 9, 2017 4:48 AM by AnonymousDefaultUser

    Radio button Issue

    AnonymousDefaultUser Master

      In the below snippet, even though I kept default value empty, by default first option radio button is selected. My requirement is not to select any radio button by default and disable Next button until the user selects anyone of the option.


      So, Am I missing anything in the below snippet to perform above requirement successfully.


      <choiceparameter>
                  <name>scanner_type</name>
                  <description>Choose your scanner to install the proper driver</description>
                  <explanation></explanation>
                  <value></value>
                  <default>none</default>
                  <allowemptyvalue>0</allowemptyvalue>
                  <displaytype>radiobuttons</displaytype>
                  <ordering>default</ordering>
                  <width>40</width>
                  <optionlist>
                      <option>
                          <description></description>
                          <image></image>
                          <text>NeatConnect</text>
                          <value>neatconnect</value>
                      </option>
                      <option>
                          <description></description>
                          <image></image>
                          <text>NeatDesk</text>
                          <value>neatdesk</value>
                      </option>
                      <option>
                          <description></description>
                          <image></image>
                          <text>NeatReceipts</text>
                          <value>neatreceipts</value>
                      </option>
                      <option>
                          <description></description>
                          <image></image>
                          <text>I do not have a Neat Scanner</text>
                          <value>no_scanner</value>
                      </option>
                  </optionlist>
              </choiceparameter>

        • 1. Re: Radio button Issue
          AnonymousDefaultUser Master

          What platform is this happening on? I have just checked and on Windows no option is selected. However, the user can continue with the installation.

          This can be prevented with doing a <throwError> if the type is none to indicate that scanner has to be selected. Such as:

          <choiceParameter>   <name>scanner_type</name>   <description>Choose your scanner to install the proper driver</description>   <explanation></explanation>   <value></value>   <default>none</default>   <allowEmptyValue>0</allowEmptyValue>   <displayType>radiobuttons</displayType>   <ordering>default</ordering>   <width>40</width>   <optionList>     <!-- ... -->   </optionList>   <validationActionList>     <throwError>       <text>Please select scanner type</text>       <ruleList>         <compareValues>           <logic>equals</logic>           <value1>${scanner_type}</value1>           <value2>none</value2>         </compareValues>       </ruleList>     </throwError>   </validationActionList> </choiceParameter>