I need to present a choice to the user in the form of 2 radio buttons, but if the 2nd is chosen, I need to reveal 4 text boxes for them to fill in.

Is this possible?

asked 13 Mar '12, 16:00

bstoke's gravatar image

bstoke
16222224
accept rate: 0%


You can use a <choiceParameterGroup>:

<choiceParameterGroup>
   <name>choice</name>
   <description>Select an option</description>
   <value>option1</value>
   <parameterList>
      <labelParameter name="option1" description="Option 1"/>
     <parameterGroup>
         <name>option2</name>
         <description>Option 2</description>
         <parameterList>
            <stringParameter name="suboption1" description="Sub option 1"/>
            <passwordParameter name="suboption2" description="Sub Option 2"/>
        </parameterList>
      </parameterGroup>
   </parameterList>
</choiceParameterGroup>

You can find more information here

link

answered 13 Mar '12, 16:44

juanjo's gravatar image

juanjo ♦♦
5.8k413
accept rate: 23%

thanks, but that doesn't give me what I need...

The Sub Option 1 shows under the first radio - I need both under the 2nd radio, like this:

O first choice
O second choice
   text 1 ____________
   text 2 ____________

I also need the text 1 & 2 to be invisible until the second choice radio is pressed.

are both of these possible?

(13 Mar '12, 17:26) bstoke

The second choice radiobutton should appear vertically aligned with the second choice parameter. So, if the second choice has 3 parameters, it should appear as:

   O first choice

       text 1 ____________
   O  text 2 ____________  
       text 3 ____________

It is also not possible to make the options invisible, just disabled

link

answered 14 Mar '12, 08:33

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:

×47
×11
×7

Asked: 13 Mar '12, 16:00

Seen: 1,563 times

Last updated: 14 Mar '12, 08:34