Is it possible to trigger the validation of email field when the customer click next button only? I want to remove the validation on keypress etc


Added following code inside next event method

var loginFormSelector = 'form[data-role=email-with-possible-login]';
var emailValidationResult = Boolean($(loginFormSelector + ' input[name=username]').valid());
if(emailValidationResult) {
    // validation
|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.