Closed
Description
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
Labels
No labels