magento 1.8 validation not working for new fields in custom contact form -


I am trying to validate my new areas in the custom contact form, here is my link to this form:

I included the form ID in this form: var contactForm = new VarienForm ('customcontacts' is true);

And I made every input with the class like this:

    

But when I try to submit these fields without filling up, this form submits and sends emails without any errors.

I hope nobody can help with this.

Thanks

Your & lt; Form & gt; is & lt; Table & gt; and & lt; Tr & gt; Defined between , which is not valid, things can get worse if you print out the contents of your form document.getElementById ('customcontacts') in a JavaScript console. External HTML , you will see that it is empty. Make sure & lt; Form & gt; and & lt; / Form & gt; Tags are in a valid location (usually when you see the source of the page from Firefox, it is invalid markup with red) then the verification should work.


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -