Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

[Re-asked] How to consolidate ‘form-validate’ and ‘login-form’ script? 
 
lotusseedsD
Mentor
 
Avatar
Total Posts:  1144
Joined:  2007-08-31
 

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:
<script type="text/javascript\">
var dataForm = new VarienForm(’form-validate’, true);
</script>

<script type="text/javascript\">
var dataForm = new VarienForm(’login-form’, true);
</script>

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

Image Attachments
psw.pnglogin.jpg
 
Magento Community Magento Community
Magento Community
Magento Community
 
lotusseedsD
Mentor
 
Avatar
Total Posts:  1144
Joined:  2007-08-31
 

I thought we have many JS gurus in this forum. No?

 
Magento Community Magento Community
Magento Community
Magento Community
 
doctorlogos
Sr. Member
 
Avatar
Total Posts:  178
Joined:  2008-05-06
 

Interesting. I like this feature.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top