{"action":"created","issue":{"url":"https://api.github.com/repos/contao/core/issues/8084","labels_url":"https://api.github.com/repos/contao/core/issues/8084/labels{/name}","comments_url":"https://api.github.com/repos/contao/core/issues/8084/comments","events_url":"https://api.github.com/repos/contao/core/issues/8084/events","html_url":"https://github.com/contao/core/issues/8084","id":112977415,"number":8084,"title":"Validate \\Widget fields without displaying errors","user":{"login":"Defcon0","id":1485098,"avatar_url":"https://avatars.githubusercontent.com/u/1485098?v=3","gravatar_id":"","url":"https://api.github.com/users/Defcon0","html_url":"https://github.com/Defcon0","followers_url":"https://api.github.com/users/Defcon0/followers","following_url":"https://api.github.com/users/Defcon0/following{/other_user}","gists_url":"https://api.github.com/users/Defcon0/gists{/gist_id}","starred_url":"https://api.github.com/users/Defcon0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Defcon0/subscriptions","organizations_url":"https://api.github.com/users/Defcon0/orgs","repos_url":"https://api.github.com/users/Defcon0/repos","events_url":"https://api.github.com/users/Defcon0/events{/privacy}","received_events_url":"https://api.github.com/users/Defcon0/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-23T08:38:18Z","updated_at":"2015-10-28T09:49:02Z","closed_at":null,"body":"Hello folks,\r\n\r\nin our current project we have frontend forms containing form fields. Now one customer requirement is to have a visual hint if the form is completed (i.e. is validated completely without errors).\r\n\r\nBut the problem is, when I run \\Widget->validator, errors are added via the addError method. So I cannot validate the widget without showing the red error markup.\r\n\r\nI can think of 2 different solutions for this:\r\n\r\n1. The validator-method gets a new parameter doNotDisplayErrors (false per default). If set, no errors are rendered to the form. Since it's a default parameter, no backward compatibility should be broken.\r\n2. The \\Widget class offers a method for clearing the errors ($this->arrErrors = array(); $this->class = '';).\r\n\r\nWould that be possible?"},"comment":{"url":"https://api.github.com/repos/contao/core/issues/comments/151783084","html_url":"https://github.com/contao/core/issues/8084#issuecomment-151783084","issue_url":"https://api.github.com/repos/contao/core/issues/8084","id":151783084,"user":{"login":"Toflar","id":481937,"avatar_url":"https://avatars.githubusercontent.com/u/481937?v=3","gravatar_id":"","url":"https://api.github.com/users/Toflar","html_url":"https://github.com/Toflar","followers_url":"https://api.github.com/users/Toflar/followers","following_url":"https://api.github.com/users/Toflar/following{/other_user}","gists_url":"https://api.github.com/users/Toflar/gists{/gist_id}","starred_url":"https://api.github.com/users/Toflar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Toflar/subscriptions","organizations_url":"https://api.github.com/users/Toflar/orgs","repos_url":"https://api.github.com/users/Toflar/repos","events_url":"https://api.github.com/users/Toflar/events{/privacy}","received_events_url":"https://api.github.com/users/Toflar/received_events","type":"User","site_admin":false},"created_at":"2015-10-28T09:49:02Z","updated_at":"2015-10-28T09:49:02Z","body":"Yeah, did not say so. But removing it from the DOM is wrong."}}