{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/12003","repository_url":"https://api.github.com/repos/yiisoft/yii2","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/12003/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/12003/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/12003/events","html_url":"https://github.com/yiisoft/yii2/issues/12003","id":167067278,"number":12003,"title":"Remove validation  dynamically","user":{"login":"actcux","id":13857548,"avatar_url":"https://avatars.githubusercontent.com/u/13857548?v=3","gravatar_id":"","url":"https://api.github.com/users/actcux","html_url":"https://github.com/actcux","followers_url":"https://api.github.com/users/actcux/followers","following_url":"https://api.github.com/users/actcux/following{/other_user}","gists_url":"https://api.github.com/users/actcux/gists{/gist_id}","starred_url":"https://api.github.com/users/actcux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/actcux/subscriptions","organizations_url":"https://api.github.com/users/actcux/orgs","repos_url":"https://api.github.com/users/actcux/repos","events_url":"https://api.github.com/users/actcux/events{/privacy}","received_events_url":"https://api.github.com/users/actcux/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-22T15:11:51Z","updated_at":"2016-07-22T15:49:16Z","closed_at":null,"body":"I have an issue with a form witch shows fields from 2 models,  a checkbox enables the fields of the second model; so I want, when the checkbox is checked it adds a validation rule for the field of the second model, and when it is unchecked the rules have to be removed. To add the rules is working fine with $('#myform').yiiActiveForm('add', attributes), but to remove the validation it is not working or maybe I am doing wrong, I trying with $('#myform').yiiActiveForm('remove', 'field-id'); but no success.\r\n\r\nCan you help me with this please?\r\n\r\nThank you.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/comments/234580823","html_url":"https://github.com/yiisoft/yii2/issues/12003#issuecomment-234580823","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/12003","id":234580823,"user":{"login":"samdark","id":47294,"avatar_url":"https://avatars.githubusercontent.com/u/47294?v=3","gravatar_id":"","url":"https://api.github.com/users/samdark","html_url":"https://github.com/samdark","followers_url":"https://api.github.com/users/samdark/followers","following_url":"https://api.github.com/users/samdark/following{/other_user}","gists_url":"https://api.github.com/users/samdark/gists{/gist_id}","starred_url":"https://api.github.com/users/samdark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samdark/subscriptions","organizations_url":"https://api.github.com/users/samdark/orgs","repos_url":"https://api.github.com/users/samdark/repos","events_url":"https://api.github.com/users/samdark/events{/privacy}","received_events_url":"https://api.github.com/users/samdark/received_events","type":"User","site_admin":false},"created_at":"2016-07-22T15:49:16Z","updated_at":"2016-07-22T15:49:16Z","body":"Are you using the same ID as was used when you were adding it?"}}
{"actor":{"display_login":"samdark"}}