{"action":"created","issue":{"url":"https://api.github.com/repos/jaredpalmer/formik/issues/499","repository_url":"https://api.github.com/repos/jaredpalmer/formik","labels_url":"https://api.github.com/repos/jaredpalmer/formik/issues/499/labels{/name}","comments_url":"https://api.github.com/repos/jaredpalmer/formik/issues/499/comments","events_url":"https://api.github.com/repos/jaredpalmer/formik/issues/499/events","html_url":"https://github.com/jaredpalmer/formik/issues/499","id":303465940,"number":499,"title":"Determine if submit was clicked and touched flag","user":{"login":"deshiknaves","id":862834,"avatar_url":"https://avatars1.githubusercontent.com/u/862834?v=4","gravatar_id":"","url":"https://api.github.com/users/deshiknaves","html_url":"https://github.com/deshiknaves","followers_url":"https://api.github.com/users/deshiknaves/followers","following_url":"https://api.github.com/users/deshiknaves/following{/other_user}","gists_url":"https://api.github.com/users/deshiknaves/gists{/gist_id}","starred_url":"https://api.github.com/users/deshiknaves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deshiknaves/subscriptions","organizations_url":"https://api.github.com/users/deshiknaves/orgs","repos_url":"https://api.github.com/users/deshiknaves/repos","events_url":"https://api.github.com/users/deshiknaves/events{/privacy}","received_events_url":"https://api.github.com/users/deshiknaves/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-08T12:40:11Z","updated_at":"2018-03-08T12:46:58Z","closed_at":"2018-03-08T12:46:58Z","author_association":"NONE","body":"## Question?\r\nIs there a way to determine if the submit button has been clicked when it has validation errors. I don't want to show the errors unless the field has been `touched` — which is shown in the examples with `touched` and `errors` with an error for the field. However, if the user clicks the submit button, then I'd like to show all the errors on all the fields. This currently doesn't work because the `touched` check will prevent messages to be displayed.\r\n\r\n## Current Behavior\r\n`touched` is updated when the field is touched which is exactly what it should do. I can't seem to find another flag that will give let me know that the validation was triggered by the submit button.\r\n\r\n\r\n## Desired Behavior\r\nSome way of knowing that the form was submitted and there were errors.\r\n\r\n\r\n## Suggested Solutions\r\nEither a new flag or all the fields set to touched. I first one is better.\r\n\r\n\r\n---\r\n\r\n<!-- PLEASE FILL THIS OUT -->\r\n- Formik Version: ^0.11.11\r\n- React Version: 16.2.0\r\n- TypeScript Version: N/A\r\n- CodeSandbox Link: N/A\r\n- OS: MacOS\r\n- Node Version: v8.10.0\r\n- Package Manager and Version: 5.6.0\r\n"},"comment":{"url":"https://api.github.com/repos/jaredpalmer/formik/issues/comments/371477133","html_url":"https://github.com/jaredpalmer/formik/issues/499#issuecomment-371477133","issue_url":"https://api.github.com/repos/jaredpalmer/formik/issues/499","id":371477133,"user":{"login":"deshiknaves","id":862834,"avatar_url":"https://avatars1.githubusercontent.com/u/862834?v=4","gravatar_id":"","url":"https://api.github.com/users/deshiknaves","html_url":"https://github.com/deshiknaves","followers_url":"https://api.github.com/users/deshiknaves/followers","following_url":"https://api.github.com/users/deshiknaves/following{/other_user}","gists_url":"https://api.github.com/users/deshiknaves/gists{/gist_id}","starred_url":"https://api.github.com/users/deshiknaves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deshiknaves/subscriptions","organizations_url":"https://api.github.com/users/deshiknaves/orgs","repos_url":"https://api.github.com/users/deshiknaves/repos","events_url":"https://api.github.com/users/deshiknaves/events{/privacy}","received_events_url":"https://api.github.com/users/deshiknaves/received_events","type":"User","site_admin":false},"created_at":"2018-03-08T12:46:57Z","updated_at":"2018-03-08T12:46:57Z","author_association":"NONE","body":"Completely my mistake. I thought that's what it was supposed to do."}}
{"actor":{"display_login":"deshiknaves"}}