preselect and disable radio buttons

Comments

1 comment

  • Avatar
    juanjo

    You just have to select the value of the appropriate radiobutton in the choiceParameter value. For example, to select option2:

    <choiceParameter>
        <name>choices</name>
        ...
        <value>option2</value>
        <displayType>radiobuttons</displayType>
        <optionList>
            <option>
                <description>Option 1</description>
                <text>Option 1</text>
                <value>option1</value>
            </option>
            <option>
                <description>Option 2</description>
                <text>Option 2</text>
                <value>option2</value>
            </option>
        </optionList>
    </choiceParameter>
    

    It can be also configured programmatically using:

    <setInstallerVariable name="project.parameter(choices).value" value="option2"/>
    

Please sign in to leave a comment.