Invalid email error message not showing
-
Hello,
I noticed that the “invalid email” error message is not displayed when a user enters an incorrect email address. After investigating, I believe there is a small mistake in the frontend-dev.js file in the email validation check.
Here is the relevant snippet:
if (!instock_notifier.is_email(email_id)) {
jQuery(this).closest('.cwginstock-subscribe-form').find('.cwgstock_output').fadeIn();
jQuery(this).closest('.cwginstock-subscribe_form').find('.cwgstock_output').html("<div class='cwginstockerror' style='color:red;'>" + cwginstock_invalidemail + "</div>");
return false;
}On line 212, it uses
cwginstock-subscribe_forminstead ofcwginstock-subscribe-form.
This seems to prevent the error message from showing correctly.Could you please confirm this?
Thank you for your help
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Invalid email error message not showing’ is closed to new replies.