checkbox list: Allow exactly one selection (like Radiobutton)
I have made a form with Checkbox lists, for it gives me the option to use relationships to pivot tables.
But instead of noticing the user via label to select only one option, I would like to only allow one option. (Just like Radiobutton, which can't be used in lack of relationship option or like SelectBox, which can't be used in Lack of BelongsToMany relationship.)
Could be a good idea to implement an Option as "->SingleSelectionOnly()", which deselects all other options when one item being clicked.
2 Replies