Issue Feature New Orphaned

#93530Synchronize date/time fields

Xavier Perseguers 02/17/21, 10:28 updated 03/06/24, 11:02

Description

In the context of creating some “event”, you often have to deal with some kind of start and end dates (and time).

So your edit form looks like:

empty.png

Now click the start field to choose a date in 2 months (today is 17.02.2021):

init.png

Now move with the date/time picker and choose the date in 2 months.

OK, you now want to define the end date/time 4 hours later than the start… you click the end date and you get the exact same picker, defaulting to today!

I could imagine two UX enhancements (to be enabled in TCA if it makes sense for a use case):

  • Since the end date is empty, clicking/focusing it should default to the start date I just picked instead of “today”
  • More generally, maybe I’d like to get a “synchronize” button next to the end date field.

The button could actually even be totally be omitted as clearing the field would leave us in the context of the end date being undefined and taking the start date as context when we click/focus it again.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

Fix this issue

Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch

Commit message
[FEATURE] Synchronize date/time fields Resolves: #93530 Releases: main