DateTimePicker is not working

artpol 30 Nov, 2010
Hello,
I created simple form with date/time picker. But it doesnt work. Only blank field, where it is suppose to be Picker
DateTimePicker is not working image 1

Help me, please to solve the problem

Thanks

PS
Data field settings
DateTimePicker is not working image 2
GreyHead 30 Nov, 2010
Hi artpol,

This is probably a JavaScript problem. Please post a link to the form so we can take a quick look.

Bob
GreyHead 08 Feb, 2011
Hi Antoinedias,

If you view the form without the template it's OK.

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 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! 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.

Bob
antoinedias 08 Feb, 2011
Hello Bob, good evening. Thanks for the help, but still not working. I tried both procedures and still not showing up.
GreyHead 08 Feb, 2011
Hi antoindedias,

The jQuery.noConflict() command is running before JQuery is loaded so it is giving an error.

Bob
antoinedias 09 Feb, 2011
Sorry, Bob, I'm not expert on this subject. How do I fix this?
GreyHead 09 Feb, 2011
Hi antoinedias,

Please try putting this in the Form JavaScript box.
window.addEvent('domready', function() {
  jQuery.noConflict();
});

. . . then ask whoever wrote the template for a refund :-)

Bob
antoinedias 09 Feb, 2011
Did not work. But okay, I'll use a text field even. Thanks, Bob!
GreyHead 09 Feb, 2011
Hi antoinedias,

By all means email or PM me the site URL and a SuperAdmin login and I'll take a quick look.

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