Skip to main content
2 votes
Accepted

Calendar Field render error "Double timezone specification"

My suggestion would be, simply change the database field to varchar or text for saving this form field and then the error should be gone. Then you can get back the string format date values from the ...
Zollie's user avatar
  • 2,956
2 votes

Make calendar dynamically in 3.7

Based on chavab_1's answer, this answer uses Joomla's interface to create the html and adds a date dynamically when a button is clicked. I left the id field blank as it doesn't seem to be required for ...
Justin White's user avatar
2 votes

Populate Joomla Calendar field by jQuery not working

I noticed a change in the calendar widget in Joomla 3.8. In addition to the setting the value via val(), I also had to set the data-alt-value attribute as well. Otherwise it would fail validation. So, ...
Dan Cogliano's user avatar
2 votes

How to trigger javascript on a date selection on JHTML::_calendar

This is supported directly in core Joomla, at lease in version 3.8.5. JHTML::calendar takes five parameters, the value (date time), element name, element id, date time format and attributes. The ...
Dom's user avatar
  • 511
1 vote

How to trigger javascript on a date selection on JHTML::_calendar

You can achive this behavior with a workaround (testing clicks on popup calendar days): jQuery(".icon-calendar").click(function(){ jQuery("body").on("click",".daysrow",function(){ /* Check ...
Kitase88's user avatar
  • 977
1 vote

set server time as default at the calendar

why would someone has a totaly wrong date on his system?! but to answer your question: have you tried to set the filter to server_utc? from the docs: filter (optional) is time zone to be used. There ...
Marco's user avatar
  • 691
1 vote
Accepted

Joomla Calendar format not displaying the correct format

Let's try this: Drop the format line completely from the xml definition. In its place try: translateformat="true" showtime="true" and see what that gives you. My guess here is the system is ...
Arlen's user avatar
  • 802
1 vote
Accepted

Add a Calendar field in Joomla 3.9 without using form xml

After testing this issue few times, you can realize that via the ajax call the Calendar HTML fields are created but it will not trigger the JoomlaCalendar javascript methods which are needed to create ...
Zollie's user avatar
  • 2,956
1 vote
Accepted

JS : How to trigger a Blur event with my code

Sometimes you can't see the forest for the trees. My JS now looks like this function addDate(target_field) { document.getElementById(target_field).value = currentDate(); document....
Irata's user avatar
  • 4,361
1 vote
Accepted

Get value for joomla calendar input box to use in ajax call

Here's the glaring issue that I can detect via Google Chrome's developer tools... You have multiple instances of the element id (one nested inside another) that you are attempting to access. id ...
mickmackusa's user avatar
  • 4,846
1 vote

How to change date format in JHTML::calendar to d-m-Y?

The basic issue is that sql datetime field format is this: 'YYYY-MM-DD HH:MM:SS'. You can only save a date in this format when you save a date/time value (in MySQL at least). If you have a calendar ...
Zollie's user avatar
  • 2,956
1 vote
Accepted

Make calendar dynamically in 3.7

After digging around, I finally found the answer or at least got it to work. Not sure if there is a better way. First off, originally I was initializing from the input field. We now have to do it from ...
chavab_1's user avatar
  • 195
1 vote

Populate Joomla Calendar field by jQuery not working

I've found a way to do what you're looking for, but its a bit hacky! When you call JHtml::_( 'calendar', . . Joomla renders a div with the class 'field-calendar' into your document, and adds media/...
Dom's user avatar
  • 511

Only top scored, non community-wiki answers of a minimum length are eligible