Radio Buttons in FormWidget

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
su2
Reply | Threaded
Open this post in threaded view
|

Radio Buttons in FormWidget

su2
Hi All,
 
I am creating a FormWidget with text boxes and radio button. I am aware of the syntax for text boxes : <field name="xyz"><text/></field> 
 
But I am unaware of the syntax for the radio buttons.
 
I would really appreciate your help.
 
Thanks.
Reply | Threaded
Open this post in threaded view
|

Re: Radio Buttons in FormWidget

Bob Morley
Hopefully we did not create this, but here is an example from one of our forms --
<field ...>
            <radio no-current-selected-key="HOME">
                <option key="HOME" description="${uiLabelMap.PartyHomeEmail}" />
                <option key="WORK" description="${uiLabelMap.PartyWorkEmail}" />
                <option key="IM" description="${uiLabelMap.PartyInstantMessagingEmail}" />
            </radio>
</field>

Naturally rather then explicitly listing out the options you can bind the widget to a list or an entity fetch just like checkbox and dropdown widgets.

su2 wrote
Hi All,
 
I am creating a FormWidget with text boxes and radio button. I am aware of the syntax for text boxes : <field name="xyz"><text/></field> 
 
But I am unaware of the syntax for the radio buttons.
 
I would really appreciate your help.
 
Thanks.