Add the attribute onchange="this.form.submit" to a calendar field or make a calendar like this:
echo JHtml::_('calendar', JFactory::getDate()->format('Y-m-d'), 'date', 'date', '%Y-%m-%d', array('onChange' => 'this.form.submit();'));
Try to select a Time with hours and minutes.
This is not possible. You can select either a hour or minutes, but not both, as the onChange event is triggered with the first selection.
Title |
|
Said that, what you can do is do some checking before submitting the form.
I'll find a solution for me :) but maybe others will find this issue too.
We could say - if onChange is in the attributes: Or make a submit button when rendering the calendar and remove the attribute?
Title |
|
Category | ⇒ | com_fields |
Title |
|
Title |
|
Title |
|
Title |
|
Priority | Medium | ⇒ | Low |
Status | New | ⇒ | Needs Review |
Title |
|
Title |
|
Title |
|
Title |
|
Title |
|
Status | Needs Review | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-08-08 19:23:39 |
Closed_By | ⇒ | dgt41 |
Closed_By | dgt41 | ⇒ | joomla-cms-bot |
Set to "closed" on behalf of @dgt41 by The JTracker Application at issues.joomla.org/joomla-cms/14486
Hmm, that's tricky, onChange fired when something is changed (basically this event makes sense for inputs and selecting a date, time has 2 or 3 inputs [hour, mins, am/pm as select elements] so it correctly fires when only one of these is changed)