Needs work
Project:
Interactive widget for Recurring Dates Field
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
27 Jan 2017 at 00:38 UTC
Updated:
19 Oct 2018 at 14:17 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
Frando commentedThis is already supported, just not very obvious: If you do not enter an end date, the end date is set to the same as the start date. Upon display, the end date is ommitted if it is the same as the start date.
I'd be willing to commit a configuration option in the widget to optionally hide the end date.
Comment #3
realityloop commented@frando
We've just been discussing through this and it would be great if there was an option to hide the end date field (but still show the end time part).
Comment #4
realityloop commentedHere is a start at implementing this
Comment #5
realityloop commentedI know this is nowhere near generic enough yet.
Comment #6
thinkV commentedThis might need work, when an existing end date has been set.
Comment #7
realityloop commentedjust re-rolling for myself.
Comment #8
borisson_The hide_end_date.js file has empty lines with spaces included, those should be removed from the patch.
Needs a docblock with
Implements hook_form_alter().Comment #9
borisson_NW per #8, also - should we postpone this on #2866563: [Ideas] New interactive widget and use the actual form api to do the heavy lifting here?
Comment #10
realityloop commentedComment #11
realityloop commentedComment #12
chop commentedDoes this need a
hook_form_alter()implementation? Isn't theassets/hide_end_date.jsadded already wherever the date_recur libraries are used?Comment #13
chop commentedWhen a time is set as after midnight, the end date value should be the next day.
Comment #14
chop commentedThe field ID may change, so usually we'd get this ID or name from a data property.
Should we use a Drupal behavior for this?
Comment #15
mrpauldriver commentedWhat is the latest on this please?
Comment #16
dpiComment #17
dpi