Forums

Forms dont validate fields in J. 2.5

stoledo 17 May, 2012
Hi there im using the lastest version of chrono forms in joomla 2.5, and the fields dont validate (if they are number, email, etc) and send th email empty.
GreyHead 17 May, 2012
Hi stoledo,

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 and another named InterExt from AcuIT that allow you to control on which pages jQuery is loaded, and will always load it in no-conflict mode. However these requires that JQuery is loaded using the Joomla Document object methods. The InterExt extension allows you to select menu items to load JQuery.

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.