Buy Now
Sign in

Form not validating

hjelperne , March 16 2010, 15:10
H
hjelperne 13
March 16 2010, 15:10 #48688
Hi.

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 65
March 16 2010, 15:18 #48689
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?

Bob
If you'd like to buy me a coffee or two, thank you very much
H
hjelperne 13
March 17 2010, 09:18 #48711
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 65
March 17 2010, 10:00 #48712
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 . . .

Bob
If you'd like to buy me a coffee or two, thank you very much
H
hjelperne 13
March 17 2010, 10:16 #48713
Hi,

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 SNIPPET:
<script language="javascript" type="text/javascript">
var J = jQuery.noConflict();
</script>

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

Thank you SO much!!!
M
marcielo 45
June 15 2010, 10:54 #52976
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:
<head>

<jdoc:include type="head" />
<script language="javascript" type="text/javascript">
var J = jQuery.noConflict();
</script>
</head>
M
matadams7 1
January 08 2011, 21:12 #62956
Hello,
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="http://www.lasthopemusic.com">www.lasthopemusic.com</a><!-- w --> - click on submit offer at the bottom.
Thanks.
mat
GreyHead 65
January 09 2011, 10:33 #62975
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.

Bob
If you'd like to buy me a coffee or two, thank you very much