I tried different methods including this one and the custom form kind of works.
when the person hasn’t filled anything, but clicks submit. the form checks for the fields and displays the validation error. however, the form is sent as an empty email and the thank you page is loaded.
this only happens on the custom form all the other forms are working fine.
I’m suing this for a magento 126.96.36.199 template.
var rfq = new VarienForm(’eMail’);
also using var rfq = new VarienForm(’eMail’, true);
but neither one works
this is my form tag:
<form id="eMail" name="eMail" method="post" action="<?php echo $this->getUrl('rfq/index/save'); ?>">