{"action":"opened","issue":{"url":"https://api.github.com/repos/formvalidation/support/issues/299","labels_url":"https://api.github.com/repos/formvalidation/support/issues/299/labels{/name}","comments_url":"https://api.github.com/repos/formvalidation/support/issues/299/comments","events_url":"https://api.github.com/repos/formvalidation/support/issues/299/events","html_url":"https://github.com/formvalidation/support/issues/299","id":105243473,"number":299,"title":"Form need to be submitted twice when using callback","user":{"login":"jeanphilippealbert","id":7884120,"avatar_url":"https://avatars.githubusercontent.com/u/7884120?v=3","gravatar_id":"","url":"https://api.github.com/users/jeanphilippealbert","html_url":"https://github.com/jeanphilippealbert","followers_url":"https://api.github.com/users/jeanphilippealbert/followers","following_url":"https://api.github.com/users/jeanphilippealbert/following{/other_user}","gists_url":"https://api.github.com/users/jeanphilippealbert/gists{/gist_id}","starred_url":"https://api.github.com/users/jeanphilippealbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeanphilippealbert/subscriptions","organizations_url":"https://api.github.com/users/jeanphilippealbert/orgs","repos_url":"https://api.github.com/users/jeanphilippealbert/repos","events_url":"https://api.github.com/users/jeanphilippealbert/events{/privacy}","received_events_url":"https://api.github.com/users/jeanphilippealbert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-07T16:24:15Z","updated_at":"2015-09-07T16:24:15Z","closed_at":null,"body":"Hi!\r\n\r\nI have an issue where the form need to be submitted twice (the submit button clicked twice) to actually submit it. If I remove the callback, it works as usual. I am trying to use a callback to make sure another field is not empty. Everything works excepted the fact that I have the press the submit button twice and I can't figure out why. There is my code:\r\n\r\n```javascript\r\n$('#contact form').formValidation({\r\n\tlive: 'disabled',\r\n\r\n\ticon: {\r\n\t\tvalid: 'glyphicon glyphicon-ok',\r\n\t\tinvalid: 'glyphicon glyphicon-remove',\r\n\t\tvalidating: 'glyphicon glyphicon-refresh'\r\n\t},\r\n\t\r\n   fields: {\r\n\t\tnom: {\r\n\t\t\tvalidators: {\r\n\t\t\t\tnotEmpty: {\r\n\t\t\t\t\tmessage: \"Veuillez inscrire votre nom\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\tcourriel: {\r\n\t\t\tvalidators: {\r\n\t\t\t\temailAddress: {\r\n\t\t\t\t\tmessage: \"Veuillez inscrire une adresse courriel valide\"\r\n\t\t\t\t},\r\n\t\t\t\tcallback:{\r\n\t\t\t\t\tmessage: \"Veuillez inscrire au moins votre adresse courriel\",\r\n\t\t\t\t\tcallback: function(value, validator, $field) {\r\n\t\t\t\t\t\tif(document.getElementById('tel').value == '' && document.getElementById('courriel').value == ''){\r\n\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n}).on('keyup', '[name=\"tel\"]', function() {\r\n\t$('#contact form').formValidation('revalidateField', 'courriel');\r\n}).on('success.field.fv', function(e, data) {\r\n\tvar $parent = data.element.parents('.form-group');\r\n\t$parent.removeClass('has-success');\r\n\tdata.element.data('fv.icon').hide();\r\n});\r\n```"}}