-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revisit Checkbox Fields #22
Comments
Am I understanding correctly that the field would look like this: {
"type": "checkbox",
"name": "foo",
"value": false
} And |
The main difference for this library would be removing the |
Sounds good. I'm in favor of this change since it will make checkbox field behavior consistent with other field types. |
Currently,
checkbox
fields work similar to HTML.In the above
Field
example,foo=bar
will only be sent to the server ifchecked
is truthy. Otherwise,foo
is not sent at all (see here). However, this requires clients to understand and utilize thechecked
extension for submission. I think we should abandon the need for the extension and send the field'svalue
regardless. The checkedness can be tracked elsewhere and used to update the field'svalue
(e.g., totrue
/false
).Basically,
checkbox
fields should have the typeField<boolean>
.The text was updated successfully, but these errors were encountered: