Forums

validation is not always working

Huonker 06 May, 2012
Hello
I just got a new problem...
While i was setting up some validation rules (JS and/or Serverside) it is working when I click on the button test within the form wizzard. Ironically it is not working when I click on frontend view.
As backround is to know that I changed from english to german, but I think this should not be a problem. Might there be a configuration error?
Thank you
Regards
Peter
GreyHead 06 May, 2012
Hi Peter,

Your template (or some other component) is loading the jQuery JavaScript library.

Out of the box jQuery isn't compatible with the MooTools library used by Joomla! and ChronoForms. You can use jQuery with MooTools in no-conflict mode. There are various ways of doing this. The simplest - which may or may not work - is to add a line of script in the ChronoForms Form JavaScript box:
jQuery.noConflict();
This will free the $ operator which is used by MooTools, so you may need to update your own javascripts to use the longer jQuery operator.

There is also a neat plugin named JB Library from Joomla! Bamboo that allows you to control on which pages jQuery is loaded, and will always load it in no-conflict mode. However this requires that JQuery is loaded using the Joomla Document object methods.

I have a tutorial on Resolving jQuery problems that explores some of the issues an diagnostics and shows how to modify one template example to use the Joomla! Document methods to load JQuery in noConflict mode.

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