Hi,
I've used the code from tutorial https://devcenter.appery.io/tutorials... to validate the registration fields. It all works fine except for checking that the email address is a valid email format.
if ($.trim(Appery("loginInput").val()) !== "") {
if (Appery("passwordInput").val() == Appery("confirmPasswordInput").val()) {
if ($.trim(Appery("emailInput").val()) !== "") {
if (!document.getElementsByName("emailInput")[0].checkValidity || document.getElementsByName("emailInput")[0].checkValidity()) {register.execute({});
} else {
alert("Please enter a valid email");
}
} else {
alert("Please specify your email");
}
} else {
alert("Passwords don't match!");
}
} else {
alert("Please enter your login");
}
Any ideas on where I've gone wrong. I've doubled checked it against the original and all my field names are correct.
Regards, Shaun.