Forums

onSubmit Validate

climatec 08 Apr, 2011
Hello Guys,

We have had a form running on our website now for a while without any problems, however we have recently noticed that the onsubmit checking does not seem to work.

Originally the form was built on joomla 1.5.7 with chronoforms 3. Since then we have kept up to date and are now running joomla 1.5.23 and have recently installed Chrono Contact 3.2.

The submit code is supposed to check that two email fields on the form are identical before allowing the form to be submitted. This was all setup in another thread on here back then http://www.chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&f=2&t=11587

Please can you advise me on what i can look for.

Attached is a backup file of the form.


Many thanks in advance for your assistance.
Andrew Kemp
GreyHead 08 Apr, 2011
Hi Andrew,

There is an odd JavaScript error being thrown up deep in the Live Validation script. I think it's because a validation is being called that isn't fully specified but I'm finding it very difficult to pin the error down; I'll come back and take another look later.

Bob
climatec 13 Feb, 2013
Hello Guys,

We are still suffering with this issue, I have also noticed that a blank form can be submitted, despite the validation being set up for required forms.

We are now up to Joomla 1.5.26. CronoForms still 3.2.

The only changes to the form recently are a url updated and image verification change to ReCaptcha.

Would like to get this solved so that we have a good starting place for moving forward to a newer joomla and CronoForms.

Regards,
Andrew
GreyHead 13 Feb, 2013
Hi Andrew,

This is all very old code now and probably not worth spending much time digging in to. Will it solve your problem if you add serverside validation?

Bob
climatec 13 Feb, 2013
Hello Bob,

As im not 100% what that would mean to the form and our use of it, it would be difficult for me to answer that question.

Since posting my last message I have spent some time browsing the forums. and have noticed a message about something called mootools upgrade plugin, and have found we have that enabled. Would that be the issue perhaps?

Otherwise I have also noticed that a version 4 is available, perhaps we should be using that?

Our current plan is to move forward with joomla, to a newer version. Perhaps accelerating that plan and upgrading to version 4 is in our interest.

Regards,
Andrew
GreyHead 14 Feb, 2013
Hi Andrew,

Please see this FAQ for the differences between CFv3 & CFv4. Notice that they require different versions of MooTools.

Bob
climatec 16 Feb, 2013
Hello Bob,

Thanks for that information.

I found that disabling the mootools update plugin did not seen to affect the operation of the form.

I noticed on the "validation tab" an entry called "13- validate-confirmation". This seemed to be added to achieve what Max had helped me program into our forms using javascript.

On removing the script entered into the "Form JavaScript:" box on the "form code tab" together with removing the entry in the "Form tag attachment:" on the "general tab", and then placing "email=email2" in the box for "13- validate-confirmation", this has provided the functionality in the form which we were originally looking for.

Making these adjustments has also prevented blank forms from being submitted as well as re-enabled on entry checking of the information for required fields.

It seems that perhaps as there were potentially two codes trying to achieve the same effect they were conflicting?

I will be keeping a close eye on the form for the next few months.

regards,
Andrew
This topic is locked and no more replies can be posted.