Form not validating

hjelperne posted Mar 16, 2010 at 15:10

We installed chronoforms on our joomla 1.5 but it seems that there's nothing we can do to make it validate. We also did exactly the same on another site and everything works fine. Both sites are on the same server so same PHP version, apache, mysql, etc... We also tried the basicDemo form and it is not working either.

We are thinking that it may be something corrupt so we reinstalled chronoforms without any luck.

Any idea?
GreyHead posted Mar 16, 2010 at 15:18
Hi hjelperne,

This is probably a Javascript problem, try adding &tmpl=component to the form URL in the browser and see if that makes a difference.

Can you post a link to the site?

hjelperne posted Mar 17, 2010 at 09:18
The site is unfortunately not currently available online

&tmpl=component seems to work, but it removes all css and opens the form in a separate window.

How could we resolve this so it works in the regular fashion?

Is this due to the order of js being included or something like that?

Any further suggestions on how to resolve the issue would be greatly appreciated.
GreyHead posted Mar 17, 2010 at 10:00
Hi hjelperne,

If the form validation works when you add &tmpl=component then you have a JavaScript conflict with your template (the extra part in the url loads the form without the template).

The most common cause for this is templates that use JQuery (you need to put JQuery into noConflict mode); then templates that load a different version of MooTools than the v1.1 that Joomla and ChronoForms use; after that it could be anything . . .

hjelperne posted Mar 17, 2010 at 10:16

You are absolutely correct! Thanks for the quick feed back!

Adding the script snippet below after my jquery js files were included in the template and before calling the $(document).ready(function(){ something in here... }

<script language="javascript" type="text/javascript">
var J = jQuery.noConflict();

This solved the issue - actually it was due to usage of the jsuperfish style dynamic menu which uses jquery

Thank you SO much!!!
marcielo posted Jun 15, 2010 at 10:54
I just want to confirm that the snippet works real well.

I'm using the swMenuPro component with the accordion menu together with the yaml framework template for joomla.

I inserted the snippet at the end of the template header and magic started to happen🙂

This is how my header looks:

<jdoc:include type="head" />
<script language="javascript" type="text/javascript">
var J = jQuery.noConflict();
matadams7 posted Jan 8, 2011 at 21:12
My form worked on my previous host. I switched servers. and copied all the SQL tables. Everything appears perfect, but it won't send or validate.
I tried the "&tmpl=component" and that works to validate. But the jquery script didn't fix it.

I have tried re-configuring all mail settings in Global Config, I've tried reinstalling ChronoForms and then restoring the form. Changing every setting I can think of in the admin section of ChronoForms.

It's a really long form otherwise I'd just recreate it.
I just don't know what to try next. Any help would be great.

My form is at <!-- w --><a class="postlink" href=""></a><!-- w --> - click on submit offer at the bottom.
GreyHead posted Jan 9, 2011 at 10:33
Hi mat,

The form is not validating because none of the page header information is being loaded. No JavaScript, next to no CSS, no description, title or other meta-tags.

I'd say that your main problem is a seriously broken template. As a test please try switching the site to one of the Joomla! default templates. I hope that you will find that the form then works correctly.

This topic is locked and no more replies can be posted. Inc. (Ohio, USA) is an authorized retailer for
goods and services provided by