{"action":"created","issue":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/11243","repository_url":"https://api.github.com/repos/joomla/joomla-cms","labels_url":"https://api.github.com/repos/joomla/joomla-cms/issues/11243/labels{/name}","comments_url":"https://api.github.com/repos/joomla/joomla-cms/issues/11243/comments","events_url":"https://api.github.com/repos/joomla/joomla-cms/issues/11243/events","html_url":"https://github.com/joomla/joomla-cms/issues/11243","id":166994689,"number":11243,"title":"Required showon fields throwing an error even if they are not shown.","user":{"login":"vistiyos","id":822629,"avatar_url":"https://avatars.githubusercontent.com/u/822629?v=3","gravatar_id":"","url":"https://api.github.com/users/vistiyos","html_url":"https://github.com/vistiyos","followers_url":"https://api.github.com/users/vistiyos/followers","following_url":"https://api.github.com/users/vistiyos/following{/other_user}","gists_url":"https://api.github.com/users/vistiyos/gists{/gist_id}","starred_url":"https://api.github.com/users/vistiyos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vistiyos/subscriptions","organizations_url":"https://api.github.com/users/vistiyos/orgs","repos_url":"https://api.github.com/users/vistiyos/repos","events_url":"https://api.github.com/users/vistiyos/events{/privacy}","received_events_url":"https://api.github.com/users/vistiyos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2016-07-22T08:25:42Z","updated_at":"2016-07-22T13:24:01Z","closed_at":null,"body":"#### Steps to reproduce the issue\r\nCreate a required showon field only if a field has a particular value set and then try to save the form\r\n\r\n\r\n#### Expected result\r\nIf the field is not shown and it's empty, the form should be submitted with no issues\r\n\r\n\r\n#### Actual result\r\nJoomla! validator throws an error saying that \"x\" field is required and it's empty.\r\n\r\n\r\n#### System information (as much as possible)\r\nAppears on the latest Joomla version.\r\n\r\n\r\n#### Additional comments\r\nI would say that on the submit process, the validation script should check if that field is shown before throwing the error if it has been marked as required.\r\n"},"comment":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/comments/234542554","html_url":"https://github.com/joomla/joomla-cms/issues/11243#issuecomment-234542554","issue_url":"https://api.github.com/repos/joomla/joomla-cms/issues/11243","id":234542554,"user":{"login":"ggppdk","id":5092940,"avatar_url":"https://avatars.githubusercontent.com/u/5092940?v=3","gravatar_id":"","url":"https://api.github.com/users/ggppdk","html_url":"https://github.com/ggppdk","followers_url":"https://api.github.com/users/ggppdk/followers","following_url":"https://api.github.com/users/ggppdk/following{/other_user}","gists_url":"https://api.github.com/users/ggppdk/gists{/gist_id}","starred_url":"https://api.github.com/users/ggppdk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ggppdk/subscriptions","organizations_url":"https://api.github.com/users/ggppdk/orgs","repos_url":"https://api.github.com/users/ggppdk/repos","events_url":"https://api.github.com/users/ggppdk/events{/privacy}","received_events_url":"https://api.github.com/users/ggppdk/received_events","type":"User","site_admin":false},"created_at":"2016-07-22T13:24:01Z","updated_at":"2016-07-22T13:24:01Z","body":"I am not sure about this,\r\nwill it hurt, if server side validation makes use of showon ?"}}
{"actor":{"display_login":"ggppdk"}}