{"action":"closed","issue":{"url":"https://api.github.com/repos/formvalidation/support/issues/70","labels_url":"https://api.github.com/repos/formvalidation/support/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/formvalidation/support/issues/70/comments","events_url":"https://api.github.com/repos/formvalidation/support/issues/70/events","html_url":"https://github.com/formvalidation/support/issues/70","id":61284235,"number":70,"title":"onSuccess called mulitple times on remote validation","user":{"login":"nghuuphuoc","id":4226036,"avatar_url":"https://avatars.githubusercontent.com/u/4226036?v=3","gravatar_id":"","url":"https://api.github.com/users/nghuuphuoc","html_url":"https://github.com/nghuuphuoc","followers_url":"https://api.github.com/users/nghuuphuoc/followers","following_url":"https://api.github.com/users/nghuuphuoc/following{/other_user}","gists_url":"https://api.github.com/users/nghuuphuoc/gists{/gist_id}","starred_url":"https://api.github.com/users/nghuuphuoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nghuuphuoc/subscriptions","organizations_url":"https://api.github.com/users/nghuuphuoc/orgs","repos_url":"https://api.github.com/users/nghuuphuoc/repos","events_url":"https://api.github.com/users/nghuuphuoc/events{/privacy}","received_events_url":"https://api.github.com/users/nghuuphuoc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/formvalidation/support/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-03-13T22:40:29Z","updated_at":"2015-03-17T09:42:46Z","closed_at":"2015-03-17T09:42:46Z","body":"_From @andyhbg on March 5, 2015 13:10_\n\nWhen using remote validation combined with onSuccess callback the function is called every time the submit button is pressed. The remote url is not fetched again but onSuccess is called. Is this the expected behavior?\r\n\r\n```javascript\r\n$('#frm-register').formValidation({\t\t\t\t\r\n      live:'enabled',\r\n      fields: {\t\t    \t\r\n          'card-nr': {\r\n              verbose: false,\r\n              validators: {\r\n                  notEmpty: {\r\n                        message: 'Error'\r\n                  },\r\n                  numeric: {\r\n                       message: 'Error'\r\n                  },\r\n                  stringLength: {\r\n                       min: 8,\r\n                       max: 8,\r\n                       message: 'Error'\r\n                  }, \r\n                  remote: {\r\n                      url: '',\r\n                      type: 'GET',                \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n                      onSuccess: function(e, data) {\r\n                          // Called every time submit button is pressed\r\n                          console.log('onSuccess', data);\r\n                      },\r\n                      onError: function(e, data) {\r\n                          console.log('onError');\r\n                      }\r\n                  }\r\n              }\r\n          }\r\n      }\r\n})\r\n.on('success.form.fv', function(e) {\r\n})\r\n```\n\n_Copied from original issue: formvalidation/formvalidation#1447_"}}