Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Form Questions

Individual radio buttons?


Reply

2 Posts   368 Views

Avatar
Bennett

21 February 2014 at 9:50am Community Member, 2 Posts

How can you have radio buttons in the same group but separated on the form? For example below, the two radio buttons (Existing User and New User) are part of the same group, but have other fields between them. I believe OptionsetField always displays the radio buttons together, so I can't use that. What can I use?

O Existing User

User ID: [_______]

O New User

Name: [_______]
Password: [_______]

Avatar
Willr

21 February 2014 at 9:32pm Forum Moderator, 5511 Posts

I do believe SelectionGroup implements this functionality http://api.silverstripe.org/3.1/class-SelectionGroup.html