Skip to content

Revisit Checkbox Fields #22

Closed
Closed
@dillonredding

Description

@dillonredding

Currently, checkbox fields work similar to HTML.

{
  "type": "checkbox",
  "name": "foo",
  "value": "bar",
  "checked": false
}

In the above Field example, foo=bar will only be sent to the server if checked is truthy. Otherwise, foo is not sent at all (see here). However, this requires clients to understand and utilize the checked extension for submission. I think we should abandon the need for the extension and send the field's value regardless. The checkedness can be tracked elsewhere and used to update the field's value (e.g., to true/false).

Basically, checkbox fields should have the type Field<boolean>.

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