{"action":"created","issue":{"url":"https://api.github.com/repos/UnionOfRAD/lithium/issues/1142","labels_url":"https://api.github.com/repos/UnionOfRAD/lithium/issues/1142/labels{/name}","comments_url":"https://api.github.com/repos/UnionOfRAD/lithium/issues/1142/comments","events_url":"https://api.github.com/repos/UnionOfRAD/lithium/issues/1142/events","html_url":"https://github.com/UnionOfRAD/lithium/issues/1142","id":45616753,"number":1142,"title":"Render checkbox with checked attribut","user":{"login":"gmercey","id":1422374,"avatar_url":"https://avatars.githubusercontent.com/u/1422374?v=3","gravatar_id":"","url":"https://api.github.com/users/gmercey","html_url":"https://github.com/gmercey","followers_url":"https://api.github.com/users/gmercey/followers","following_url":"https://api.github.com/users/gmercey/following{/other_user}","gists_url":"https://api.github.com/users/gmercey/gists{/gist_id}","starred_url":"https://api.github.com/users/gmercey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmercey/subscriptions","organizations_url":"https://api.github.com/users/gmercey/orgs","repos_url":"https://api.github.com/users/gmercey/repos","events_url":"https://api.github.com/users/gmercey/events{/privacy}","received_events_url":"https://api.github.com/users/gmercey/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/UnionOfRAD/lithium/labels/enhancement","name":"enhancement","color":"444444"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-10-13T07:49:47Z","updated_at":"2015-01-08T03:41:07Z","closed_at":null,"body":"Hi,\r\n\r\nI recently saw that the `Form` Helper renders checkbox with a `value` attribut instead of the `checked` excepted :\r\n\r\n    <input type=\"hidden\" name=\"opt_in\" value=\"\" />\r\n    <input type=\"checkbox\" name=\"opt_in\" id=\"UserOptIn\" value=\"1\" />  \r\n\r\nInstead of\r\n\r\n    <input type=\"checkbox\" name=\"opt_in\" id=\"UserOptIn\" checked />  \r\n\r\nIt's not a problem for the data send by the form, but it is if you're try using css selector `input:checked`\r\nI don't know if it was done on purpose or not, so I just wondering if it can be part of an enhancement.\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/UnionOfRAD/lithium/issues/comments/69131896","html_url":"https://github.com/UnionOfRAD/lithium/issues/1142#issuecomment-69131896","issue_url":"https://api.github.com/repos/UnionOfRAD/lithium/issues/1142","id":69131896,"user":{"login":"binhwpo","id":7647566,"avatar_url":"https://avatars.githubusercontent.com/u/7647566?v=3","gravatar_id":"","url":"https://api.github.com/users/binhwpo","html_url":"https://github.com/binhwpo","followers_url":"https://api.github.com/users/binhwpo/followers","following_url":"https://api.github.com/users/binhwpo/following{/other_user}","gists_url":"https://api.github.com/users/binhwpo/gists{/gist_id}","starred_url":"https://api.github.com/users/binhwpo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binhwpo/subscriptions","organizations_url":"https://api.github.com/users/binhwpo/orgs","repos_url":"https://api.github.com/users/binhwpo/repos","events_url":"https://api.github.com/users/binhwpo/events{/privacy}","received_events_url":"https://api.github.com/users/binhwpo/received_events","type":"User","site_admin":false},"created_at":"2015-01-08T03:41:07Z","updated_at":"2015-01-08T03:41:07Z","body":"Hi @gmercey From what I used, passing `$options['hidden'] = false` into the call `$this->Form->checkbox($name, $options)` function will solve your issue.\r\n\r\nBut honestly, I still wonder why would they made it a hidden field in the first place. And so yes, this should be improved."}}