Using CakePHP 3 framework.
First of all, I don't know if this is possible.
What I have now
- Multiselect checkbox list.
Example
- Bikes 1 checkbox
- Bikes 2 checkbox
- Bikes 3 checkbox
- Cars 1 checkbox
- Cars 2 checkbox
The user is now allowed to select al 5 items.
TODO
- Users many-many relation with Vehicles
- Users is allowed to select one per group.
Example TODO (my idea)
Dropdown bikes [ Bikes 1, Bikes 2, Bikes 3 ]
Dropdown cars [ Cars 1, Cars 2 ]
The user needs to be only allowed to choose one per group.
Is it possible to achieve this by one array?
EDIT
Is it possible to group a list, like the example above, of radiobuttons?