Forums

Problem with required fields and template

squirrel 18 Dec, 2011
I have two problems with my form. (Joomla 1.7.3)

1) Although the required fields are empty, you can submit the form. Even if ALL the flields are left empty! (I have set all fields to "required" by setting "Validation" --> "Required") But it doesn't work.

2) Then a thanks-message appears. But the whole page looses the structure. Above the thanks-message there is a error message: "The template for this view is not available! Please contact the administrator."

Best,
Pawel
GreyHead 18 Dec, 2011
Hi Pawel,

Please post a link to the form so I can take a quick look.

Bob
squirrel 18 Dec, 2011
Hi Bob, I have sent you a private message with a link to the form.

Best
Pawel
GreyHead 19 Dec, 2011
Hi Pawel,

Your template (or some other component) is loading (two different versions of) 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 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 Joomla! 1.5 system plugin named SC jQuery that allows you to control on which pages jQuery is loaded, and will always load it in no-conflict mode. A user posted here about a similar plug-in for Joomla! 1.6/1.7 but I don't know the name.

Bob
squirrel 19 Dec, 2011
Hi Bob, thanks for the answer!

I will try it out as soon as possible. I think the problem might be caused by the Phoca Gallery Component. Is it normal that Chrono Forms and PhocaGallery not get along well - does this sound familiar to you?

Befor I have installed Phoca, everything was allright. Now I can remember🙂

Pawel
GreyHead 19 Dec, 2011
Hi Pawel,

I'm not aware of any particular problems with Phoca Gallery, you can easily see where JQuery is being loaded with your browser's Web Developer tools. (I just looked but I guess you are upgrading the site.)

Bob
trevad2000 03 Jan, 2012
I also am having issues with getting my ChronoForm to validate in Joomla 1.7.3 on PHP 5.3

My first form is titled Donation via http://opitzforcongress.info/joomla/donation. I placed the jQuery.noConflict(); in the onLoad Load JS event code box with 'Yes' indicated for the Dynamic File. When I submit this form, the form just refreshes with no error displaying.

My second form titled Contact us via http://opitzforcongress.info/joomla/contact-us. Has the jQuery.noConflict(); in the onLoad Load JS event code box with 'No' indicated for the Dynamic File. When you submit the form, the Thank you message appears.

For both, forms I have tried the plug in jQuery++ Integrator by tushev.org which activates the JQuery noConflict but it didn't resolve this issue either. Both forms have onSubmit events 'Email' and 'Show Thanks Message'.

Does anyone have any other suggestions on how to get these form to validate (prompt errors messages) when their fields are empty?

Thanks,
Treva
GreyHead 04 Jan, 2012
Hi Treva,

I don't see a form on either of the links you posted.

I'm afraid that if you choose to use JQuery on your site then it's up to you to get it into noConflict mode. ChronoForms uses the Joomla! standard MooTools library and JQuery conflicts with it. The noConflict line needs to be inserted in your page code so that it comes after the JQuery library has loaded and before any MooTools code, e.g. the ChronoForms validation code, runs.

How best to do this is entirely dependent on the way the template or components using JQuery are coded and we can only offer suggestions that have worked for other users.

Bob
wattzinthename 01 Feb, 2012
I also have problems with the required fields in my chronforms form.

I understand jQuery conflicts with Mootools. I tried to put in place the Noconflict line but probably it's the wrong place.

I use IE9 and chronoforms V4.0

You will find my form through teh following link:

http://www.marketingopleidingenonline.nl/inschrijven

I hope anyone has a suggestion to solve my problem, may be Bob can help!
GreyHead 14 Feb, 2012
Hi wattzinthename,

I've written a help doc on solving jQuery problems. You can get it here. While this looks at one particular template there should be enough information for you to see what is happening on your site and hopefully revolve it.

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