Forums

Begginers problem with "Required" field

SuD 09 Apr, 2012
Hello, begginers problem again with me! lol

This is the form in my site: http://www.grupoescoteiroconcordia.org.br/index.php/contato

It is checked the "Required" field in all fields, the only one is not checked is the "Assunto" field.

When you Submit the form, it will give a message of error, but it will show the message of "Message sent" anyway, so the person may think that the form was send, but it was not.

What am I doing wrong?
GreyHead 10 Apr, 2012
Hi SuD ,

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.