-
Notifications
You must be signed in to change notification settings - Fork 74
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
Unselected radio group is not present in serialized data #102
Comments
Thanks @stephanebachelier To include or exclude keys due to the presence of a value is a bit inconsistent in a number of places, thanks for bringing this up. The current behaviour of Syphon is as you described: key with an empty value. A PR would be fabulous 👍 |
@rhubarbselleven then I'll come back to you soon :) |
@rhubarbselleven it's done. I've added a new registry to Syphon which I think the |
@rhubarbselleven Coming back here. I've updated my PR and rebased on top of master which is the last available. |
Would love to see it merged. Have exactly same issue with checkbox'es and radio. |
Hi,
I've found that if you serialize a form with a radio group with no button checked, the serialize object will not contain any value. I would like to have a different behavior: provide the name (or whatever key is used) of the radio group with an empty value.
I can provide a PR if you are willing to accept this behavior.
The text was updated successfully, but these errors were encountered: