I think my previous title [’form-validate’ and ‘login-form’ conflict in login page, how to prevent his?] wasn’t clear, so here again!
I tried to consolidate ‘forgot password’ page into login page, so when ‘Forgot Your Password?’ is clicked, it shows a popup instead of going to forgot password page.
I have this setup properly, problem is that when an email is entered, it prompted me the ‘This is a required field’ that belong to ‘login-form’.
How I can I prevent it?
I have these two scripts in the login page:
var dataForm = new VarienForm(’form-validate’, true);
var dataForm = new VarienForm(’login-form’, true);
After looking at some js code (is this prototype???), I realized I need to consolidate ‘form-validate’ and ‘login-form’ but don’t know how.
Please JS guru please take a look
Click thumbnail to see full-size image