{"action":"opened","issue":{"url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/issues/6194","repository_url":"https://api.github.com/repos/Semantic-Org/Semantic-UI","labels_url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/issues/6194/labels{/name}","comments_url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/issues/6194/comments","events_url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/issues/6194/events","html_url":"https://github.com/Semantic-Org/Semantic-UI/issues/6194","id":299263026,"number":6194,"title":"[Validation] Custom radio button form validation receive wrong value","user":{"login":"joshuaavalon","id":7152420,"avatar_url":"https://avatars0.githubusercontent.com/u/7152420?v=4","gravatar_id":"","url":"https://api.github.com/users/joshuaavalon","html_url":"https://github.com/joshuaavalon","followers_url":"https://api.github.com/users/joshuaavalon/followers","following_url":"https://api.github.com/users/joshuaavalon/following{/other_user}","gists_url":"https://api.github.com/users/joshuaavalon/gists{/gist_id}","starred_url":"https://api.github.com/users/joshuaavalon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshuaavalon/subscriptions","organizations_url":"https://api.github.com/users/joshuaavalon/orgs","repos_url":"https://api.github.com/users/joshuaavalon/repos","events_url":"https://api.github.com/users/joshuaavalon/events{/privacy}","received_events_url":"https://api.github.com/users/joshuaavalon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-22T08:39:18Z","updated_at":"2018-02-22T08:39:18Z","closed_at":null,"author_association":"NONE","body":"Version: 2.3.0\r\nExample: https://jsfiddle.net/hpofx6qv/\r\n\r\nExpect:\r\n\r\n* `\"yes\"` when Yes is selected.\r\n* `\"no\"` when No is selected.\r\n* `false` when nothing is selected.\r\n\r\nResult:\r\n* All return `\"yes\"` \r\n\r\n```html\r\n<form class=\"ui form\">\r\n  <div class=\"inline fields\">\r\n    <div class=\"field\">\r\n        <div class=\"ui radio checkbox\">\r\n            <input type=\"radio\" name=\"note\" tabindex=\"0\" class=\"hidden\" id=\"noteYes\" value=\"yes\">\r\n            <label for=\"noteYes\">Yes</label>\r\n        </div>\r\n    </div>\r\n    <div class=\"field\">\r\n        <div class=\"ui radio checkbox\">\r\n            <input type=\"radio\" name=\"note\" tabindex=\"0\" class=\"hidden\" id=\"noteNo\" value=\"no\">\r\n            <label for=\"noteNo\">No</label>\r\n        </div>\r\n    </div>\r\n</div>\r\n<div class=\"ui button\" id=\"valid\">Valid</div>\r\n<div id=\"result\"></div>\r\n</form>\r\n```\r\n\r\n```javascript\r\n $.fn.form.settings.rules.isYes = function (value) {\r\n            $(\"#result\").text(value);\r\n            return value === \"yes\";\r\n };\r\n\r\n$(\".ui.form\").form({\r\n    fields: {\r\n        note: {\r\n            identifier: \"note\",\r\n            rules: [{\r\n                type: \"isYes\",\r\n                prompt: \"Not yes\"\r\n            }]\r\n        }\r\n    }\r\n});\r\n\r\n$(\"#valid\").click(function() {\r\n\t$(\".ui.form\").form(\"validate form\");\r\n});\r\n```"}}
{"actor":{"display_login":"joshuaavalon"}}