Select Radio Button By Clicking on Text Next to Radio Buttons?

I have set up some radio buttons, but users can only select the radio button if they click on the button itself.  This tends to be a bit annoying.

I would like to change this so that one can click on the button OR the associated text to make the selection.  Is there an easy way to do this?  Is it an HTML Attribute of the Radio Button component?

Thanks in advance,

Eric

Answers 1
HP
HP 2011-03-25

HI Eric,

Unforunately I don't know if this is possible using the Radio button component.  The issue is that just about everywhere except the web you can select which radio button by clicking on the text associated with the button. The way radio buttons on the web function you usually need to click on the button itself.  To attach the text to the button so that clicking on the text will select the button you need to make a further             addition to the code for each button by surrounding the associated text within a label tag.  Of course from within the component we don't have a way to wrap the text in an additional tag.   This is something I can raise with our reporting team and perhaps we can add an option to allow clicking on labels to the parameter list. 

As it stands I have been able to accomplish this in an example protocol using an HTML template component to generate the radio buttons instead.  This is a very crude example and will require much work to make it as flexible and stable as a true Radio button list component, but it will demonstrate the method.

Hope this helps

Rob

comment imagecomment image