{"action":"closed","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/7465","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/7465/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/7465/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/7465/events","html_url":"https://github.com/yiisoft/yii2/issues/7465","id":59057803,"number":7465,"title":"'uncheck', 'unselect' and 'label'  cannot be disabled by setting them to false","user":{"login":"nkovacs","id":2269242,"avatar_url":"https://avatars.githubusercontent.com/u/2269242?v=3","gravatar_id":"","url":"https://api.github.com/users/nkovacs","html_url":"https://github.com/nkovacs","followers_url":"https://api.github.com/users/nkovacs/followers","following_url":"https://api.github.com/users/nkovacs/following{/other_user}","gists_url":"https://api.github.com/users/nkovacs/gists{/gist_id}","starred_url":"https://api.github.com/users/nkovacs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkovacs/subscriptions","organizations_url":"https://api.github.com/users/nkovacs/orgs","repos_url":"https://api.github.com/users/nkovacs/repos","events_url":"https://api.github.com/users/nkovacs/events{/privacy}","received_events_url":"https://api.github.com/users/nkovacs/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yiisoft/yii2/labels/type:docs","name":"type:docs","color":"207de5"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/yiisoft/yii2/milestones/11","html_url":"https://github.com/yiisoft/yii2/milestones/2.0.3","labels_url":"https://api.github.com/repos/yiisoft/yii2/milestones/11/labels","id":896106,"number":11,"title":"2.0.3","description":"","creator":{"login":"qiangxue","id":993322,"avatar_url":"https://avatars.githubusercontent.com/u/993322?v=3","gravatar_id":"","url":"https://api.github.com/users/qiangxue","html_url":"https://github.com/qiangxue","followers_url":"https://api.github.com/users/qiangxue/followers","following_url":"https://api.github.com/users/qiangxue/following{/other_user}","gists_url":"https://api.github.com/users/qiangxue/gists{/gist_id}","starred_url":"https://api.github.com/users/qiangxue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qiangxue/subscriptions","organizations_url":"https://api.github.com/users/qiangxue/orgs","repos_url":"https://api.github.com/users/qiangxue/repos","events_url":"https://api.github.com/users/qiangxue/events{/privacy}","received_events_url":"https://api.github.com/users/qiangxue/received_events","type":"User","site_admin":false},"open_issues":23,"closed_issues":211,"state":"open","created_at":"2014-12-08T18:26:37Z","updated_at":"2015-02-26T18:08:03Z","due_on":"2015-03-01T05:00:00Z","closed_at":null},"comments":1,"created_at":"2015-02-26T11:20:33Z","updated_at":"2015-02-26T18:08:03Z","closed_at":"2015-02-26T18:08:03Z","body":"[Per the code style](https://github.com/yiisoft/yii2/blob/master/docs/internals/core-code-style.md#value-for-dont-do-something), this should work:\r\n\r\n```php\r\necho $form->field($model, 'foo')->radio(['label' => false, 'uncheck' => false]);\r\necho $form->field($model, 'foo')->checkbox(['label' => false, 'uncheck' => false]);\r\necho $form->field($model, 'foo')->checkboxList(['1' => 'one', '2' => 'two'], ['unselect' => false]);\r\necho $form->field($model, 'foo')->radioList(['1' => 'one', '2' => 'two'], ['unselect' => false]);\r\necho $form->field($model, 'foo')->listBox(['1' => 'one', '2' => 'two'], ['unselect' => false]);\r\n```\r\n\r\nInstead these work the same as an empty string, which is the default for unselect."}}