Skip to content

Radio button collections #13

@bradgessler

Description

@bradgessler

The primitives for radio button inputs are already built into superform, but they don't quite work how Rails expects, which is to have a hidden field at the end with the current value that's set when no radio buttons are selected.

This is similar to how the select helper works, so I think they should share some code since there's a common pattern in Rails for a hidden field to be appended at the very end of a collection to serve as the "unselected" value.

Additionally, I think this code could actually be used for the select input since the current implementation doesn't assume users can select many different options.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions