It would be great to have a widget with a check box to add the optional end date, so only 1 date field is exposed in the form, and the option to add end date becomes more discreet.

Something like this;
Check box optional end date disabled
Check box optional end date enabled

Comments

matsbla created an issue. See original summary.

birk’s picture

Status: Active » Postponed

I've been looking into this, and the datetime form type doesn't support #states yet, so I'm postponing this issue till this gets fixed.

However, it seems the fix is set for 8.6.x, where the optional end date option should also be ready in core, making this module obsolete. My guess is such a feature would belong in the Datetime Extra module, when both issues is in core.

I'll keep an eye on both issues, and if the #states support get into Drupal before the optional end date issue, I'll look into implementing the feature in this module.

birk’s picture

Status: Postponed » Closed (works as designed)

I'm closing this, because it's still unclear, how the optional end date will be handled visually, in the upcoming core issue.

If this (or any other UI feature) is included and agreed upon in the core issue I'll update the module accordingly.