-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
after onValidationComplete need double click for form submit #621
Comments
Are you using any AJAX validation? |
not , my form |
I see a pattern. You're not using AJAX, but is this issue the same as #544? Looking back there may be a possible fix with this comment Also, read my comment in #594 for a better explanation of what I think is happening. Would you be willing to try something? Check around line 693 inside of validationEngine.jquery.js for the code that says // If we have a string, that means that we have an error, so add it to the error message. if (typeof errorMsg == 'string') { promptText += errorMsg + ' Comment the above code out. Does that get rid of the double-click requirement? |
I commented, keeps asking two clicks |
Im not quite sure why you want ro resubmit your data, when you validate your data you are already submitting, onValidationComplete stop the default behavior so you can handle the data yourself |
need to open the result in the form popup, but always have to click two times on the submit button, I have no idea what is happening.
$(document).ready(function()
{
$("#relatorio").validationEngine('attach',{
onValidationComplete: function(form, status){
if (status == true) {
$("#relatorio").validationEngine('detach');
$("#relatorio").submitData();
}
}
});
});
The text was updated successfully, but these errors were encountered: