{"action":"created","issue":{"url":"https://api.github.com/repos/erikras/redux-form/issues/337","labels_url":"https://api.github.com/repos/erikras/redux-form/issues/337/labels{/name}","comments_url":"https://api.github.com/repos/erikras/redux-form/issues/337/comments","events_url":"https://api.github.com/repos/erikras/redux-form/issues/337/events","html_url":"https://github.com/erikras/redux-form/issues/337","id":119063239,"number":337,"title":"Struggling with <input type=\"radio\" /> and booleans.","user":{"login":"antoinerey","id":3336873,"avatar_url":"https://avatars.githubusercontent.com/u/3336873?v=3","gravatar_id":"","url":"https://api.github.com/users/antoinerey","html_url":"https://github.com/antoinerey","followers_url":"https://api.github.com/users/antoinerey/followers","following_url":"https://api.github.com/users/antoinerey/following{/other_user}","gists_url":"https://api.github.com/users/antoinerey/gists{/gist_id}","starred_url":"https://api.github.com/users/antoinerey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antoinerey/subscriptions","organizations_url":"https://api.github.com/users/antoinerey/orgs","repos_url":"https://api.github.com/users/antoinerey/repos","events_url":"https://api.github.com/users/antoinerey/events{/privacy}","received_events_url":"https://api.github.com/users/antoinerey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-26T15:21:48Z","updated_at":"2015-11-26T15:39:27Z","closed_at":null,"body":"Hey \r\n\r\nI'm struggling with an `<input type=\"radio\" />` where values are booleans.\r\n\r\nMy code looks like this : \r\n\r\n```jsx\r\n<form onSubmit={ handleSubmit((data) => { console.log(data); }) }>\r\n\r\n  { ... }\r\n\r\n  <input type=\"radio\" name=\"isPrivate\" value={ true } />\r\n  <input type=\"radio\" name=\"isPrivate\" value={ false } />\r\n\r\n  { ... }\r\n\r\n  <input type=\"submit\" />\r\n</form>\r\n```\r\n\r\nAnd I'm unable to fetch `isPrivate` as a boolean. It's always a string `\"true\"`. I could use `\"true\"` and `\"false\"` instead of booleans, but I find this messy. Is there any solution I missed ? :)"},"comment":{"url":"https://api.github.com/repos/erikras/redux-form/issues/comments/159943212","html_url":"https://github.com/erikras/redux-form/issues/337#issuecomment-159943212","issue_url":"https://api.github.com/repos/erikras/redux-form/issues/337","id":159943212,"user":{"login":"erikras","id":4396759,"avatar_url":"https://avatars.githubusercontent.com/u/4396759?v=3","gravatar_id":"","url":"https://api.github.com/users/erikras","html_url":"https://github.com/erikras","followers_url":"https://api.github.com/users/erikras/followers","following_url":"https://api.github.com/users/erikras/following{/other_user}","gists_url":"https://api.github.com/users/erikras/gists{/gist_id}","starred_url":"https://api.github.com/users/erikras/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erikras/subscriptions","organizations_url":"https://api.github.com/users/erikras/orgs","repos_url":"https://api.github.com/users/erikras/repos","events_url":"https://api.github.com/users/erikras/events{/privacy}","received_events_url":"https://api.github.com/users/erikras/received_events","type":"User","site_admin":false},"created_at":"2015-11-26T15:39:27Z","updated_at":"2015-11-26T15:39:27Z","body":"The fact that they are strings is due to how React generates the `SyntheticEvent`, so I don't think there's a great way around that. You are, however, setting `checked` incorrectly. See [Simple Example](https://erikras.github.io/redux-form/#/examples/simple).\r\n```js\r\n<input type=\"radio\" {...sex} value=\"male\" checked={sex.value === 'male'}/> \r\n```"}}