Forums

Validation not working?

chloejacobs 28 Mar, 2009
Hi guys,

I can't seem to get the validation on my form to validate any fields?

Below is my contact form:

<table cellspacing="10">

<tr><td><label for="name">Name:</label></td><td>
<input type="text" name="name1" id="name1" size="30" /></td></tr>

<tr><td><label for="number">Number:</label></td><td>
<input type="text" name="number1" id="number1" size="30"/></td></tr>

<tr><td><label for="timet">Day/Time of Call:</label></td><td>
<input type="text" name="time1" id="time1" size="30" /></td></tr>

<tr><td><label for="email">Email:</label></td><td>
<input type="text" name="email1" id="email1" size="30" /></td></tr>

<tr><td><label for="contact">Contact Me via:</label></td><td>
<label>
<input type="radio" name="RadioGroup1" id="RadioGroup1" value="Phone" />
Phone</label>
<br />
<label>
<input type="radio" name="RadioGroup1" id="RadioGroup2" value="Email" />
Email</label></td></tr>

<tr><td><label for="message">Message:</label></td><td>
<textarea cols="35" rows="4" name="message1" id="message1"></textarea></td></tr>

<tr><td valign="Top"><label for="confirm">Confirm Code:</td><td>{imageverification}<BR /><input type="submit" name="submit" value="Submit" class="button" /><input type="reset" name="Reset" value="Reset" class="button"/></td></tr>

</table>

So for example when i enable the validation and enter the name name1 as this is the name of the persons name field (i.e name="name1") i am still able to submit the form when no name has been entered?

Please help! Thanks you,
Chloe ~X~
chloejacobs 28 Mar, 2009
Hi,

It says it's using the mootools validation library? Does it show this because mootools is definitely installed? Or could it be i don't have this installed and this is causing the validation to not work?

Thanks,
Chloe ~X~
Max_admin 29 Mar, 2009
Hi Chole,

Please tell me whats your Joomla/Chronoforms versions and show me a screenshot for your validation tab and preferably post a link to your form too!

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Max_admin 29 Mar, 2009
Hi Chole,

your form or website or some plugin installed loads the JQuery JS library which will interfere with the mootools JS library and so the validation will not work!

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
chloejacobs 30 Mar, 2009
Hi Max,

Thank you for your help. Do you have any idea how i can fix it? Where would i start to look for the JQuery JS library and if i find it can i just dissable it?

Thanks hun,
Chloe ~X~
Max_admin 30 Mar, 2009
Hi Chole,

the JQuery may be loaded by :

#1- mambot
#2- module at the same page
#3- your template

first try to switch to a Joomla template like JA_purity which comes with Joomla, if its gone then this is a template issue, otherwise, start disabling your mambots and module until you find out which one, start by mambots!

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.