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 ...
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 ...
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, ...
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 ...
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 ...
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 ...
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 ...
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 ...
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....
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 ...
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 ...
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 ...
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/...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
calendar × 18joomla-3.x × 10
javascript × 3
jquery × 3
form-fields-types × 3
fields × 3
date × 3
format × 2
module × 1
overrides × 1
ajax × 1
jform × 1
form × 1
com-content × 1
joomla-3.7 × 1
configuration × 1
joomla-4 × 1
timezone × 1
htmlhelper × 1
adminlist × 1