Forums

Validation not working: livevalidation_standalone.js Line 28

Kinaski 16 Jun, 2009
Hi all,

I installed today the ChronoForms_V3.1_RC5.1 component, and tried to create a form with it. Everything's fine but validation (LiveValidation I guess).

I have this error in firebug:

LiveValidation::validateElement - Element to validate acceptance must be a checkbox!
http://localhost/MYSITE/components/com_chronocontact/js/livevalidation_standalone.js
Line 288


The lines 287-290 are:

        if(validationFunction == Validate.Acceptance){
    	    if(this.elementType != LiveValidation.CHECKBOX) throw new Error('LiveValidation::validateElement - Element to validate acceptance must be a checkbox!');
    		value = this.element.checked;
    	}



But I got no acceptance checkbox in my form anyway. Not sure why this error pops up??

My form is attached.

Thanks for any help!

Z
GreyHead 16 Jun, 2009
Hi Kinaski,

And what validation settings do you have?

Bob

PS You have a couple of field names that appear to start with 00 - html field names must start with a letter.
Kinaski 16 Jun, 2009
Hi greyhead

Validation is attached.

In case the name numbers were causing problems, I renamed them but still validation don't work and I receive the same error in firebug...

ANy ideas?

Thanx

Z
Kinaski 16 Jun, 2009
Hi again,

I just found that there was a conflict with one of my other js scripts on the site, and thankfully I don't need that one at the moment.

Thanks for the support anyway,

Regards

z
GreyHead 16 Jun, 2009
Hi Kinaski,

Great, glad it's working.

Bob

PS Dashes in names can aslo cause problems when you come to save in a database table, better to avoid them.
This topic is locked and no more replies can be posted.