Forums

Validation only checks first item

d3v1an7 11 May, 2008
Hey all!

First off, thank you for this amazing product - incredible time saver!

I've got to what I hope is the final step of the proccess - validation.

It seems to be half working - the first field will validate - but when you enter in text for that field and hit submit, it wont check any of the other fields.

You can see the site here (Work in progress):
http://www.gethitched.net.au/surveys/what-singles-want

Any help would be GREATLY appreciated!


Thanks,
Ben [file name=whatsingleswant.cfbak size=21008]http://www.chronoengine.com/images/fbfiles/files/whatsingleswant.cfbak[/file]
Max_admin 11 May, 2008
Hi, in the backup I see that you don't have any fields names added to be validated!!!

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
d3v1an7 11 May, 2008
Hey Max, thanks for the reply!

I have added the classes manually, as the multiple choice questions are listed under the same name.

When I use the internal feature, it duplcates the class for every multiple choice option, so I end up with:
class="required" class="required" class="required" class="required" ... etc, for the ammount of multichoice options avaliable.
GreyHead 11 May, 2008
Hi d31an7,

With the early fields, like age and email you need to specify 'required' - otherwise a blank field is a valid response. So email is class="required validate-email" and so on.

Also the multiple checkbox fields need to use array names or you will only get the last value checked.

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