Not all fields get validated

pjdevries 12 Feb, 2008
I have a simple contact form with three fields: two regular text fields and one textarea (and a checkbox which is not important for this case). I have a 'required' validation on all three fields and and a 'validate e-mail' on one of the text fields.

When I leave all fields blank and submit the form, I get a 'This is a required field.' warning for the textarea. If I then enter some text in the textarea and submit the form again, the two other fields don't get validated and the form is accepted with those fields left blank.

Is this a bug of some sort or am I misunderstanding something?
GreyHead 12 Feb, 2008
Hi pjdevries,

Hard to say without seeing the form. Is it online?

Bob
pjdevries 12 Feb, 2008
Yes it is, although just on an experimental site I use to test extensions. Please take a look at http://obix-hosting.obix.nl/. The last option in the Main Menu is the Chrono Form I mentioned.
GreyHead 12 Feb, 2008
Hi pjdevries,

Using Firefox & Firebug the ChronoForms Javascript libraries don't appear - there are 403 error messages instead - maybe the chmod on the js folder isn't set correctly?

You also have both Prototype (from ChronoForms) and MooTools (from Joomla) trying to load on the page, This will almost inevitably give rise to Javascript conflicts. Hopefully Max aill soon have the next release of ChronoForms for 1.5 using MooTools as well.

Bob
pjdevries 12 Feb, 2008
I adjusted some permissions and as far as I can tell the JavaScript libraries get loaded now. But MooTools as well. And the problem persists.

It's weird, bacause I have the distinct feeling that it worked before. Because I experiment a lot on this site, I don't know what could have changed the behaviour though. Also it's quite strange, that one field is validated correctly and the other two are not.

Any suggestions?
Max_admin 12 Feb, 2008
May be the template or the module using mootools wasn't loaded and so all was fine, in a few days we will have J1.5 ChronoForms version with mootools support!

Cheers,

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
pjdevries 12 Feb, 2008
I'll try to figure out what causes mootlools to be loaded and see if I can prevent that. Just out of curiosity.

Also out of curiosity: why not use jQuery with Chrono Forms?
Max_admin 12 Feb, 2008
JQuery is good and we have plans to use it too but its the same as prototype, will make a problem with mootools!

Cheers,

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
pjdevries 12 Feb, 2008
So let's get rid of mootools then :laugh:
GreyHead 12 Feb, 2008
Hi pjdevries,

MooTools is built into Joomla 1.5 - not so easy to get rid of it.

Bob
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger