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   400 Views

Avatar
Bennett

Community Member, 2 Posts

21 February 2014 at 9:50am

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

Forum Moderator, 5513 Posts

21 February 2014 at 9:32pm

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