Review main Merged

93147[TASK] Deprecate DatePicker form element

Josua Vogel CR +2 V +2 Normal +101 −0 updated 05/24/26, 08:27

Commit message

The DatePicker form element and its associated DatePickerViewHelper,
TimePickerViewHelper and jQuery initialization script are deprecated
in favor of removing the jQuery dependency from ext:form.

The "Date" form element type serves as replacement and uses a native
HTML5 <input type="date"> without any JavaScript library.

Deprecated components:
- TYPO3\CMS\Form\Domain\Model\FormElements\DatePicker
- TYPO3\CMS\Form\ViewHelpers\Form\DatePickerViewHelper
- TYPO3\CMS\Form\ViewHelpers\Form\TimePickerViewHelper
- EXT:form/Resources/Public/JavaScript/frontend/date-picker.js

Review

  • Code review CR +2 Done
    • Georg Ringer +2
    • Oliver Klee +1
    • Garvin Hicking +1
  • Verified V +2 Done
    • Georg Ringer +2
    • Oliver Klee +1
    • Garvin Hicking +1
    • core-ci +1 CI

Issues 1

Files 5

Review log 910

  1. Josua Vogel uploaded patch set 1 03/10/26, 19:26

  2. core-ci voted on patch set 1 V +1 03/10/26, 19:37 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/97714

  3. Garvin Hicking commented on patch set 1 03/10/26, 21:39

    Couldn't we alias the DatePicker as Date, to not require editing form YAML fields? And just translarently migrate to the jquery-less variant?
  4. Josua Vogel commented on patch set 1 03/11/26, 06:40

    Reply

    I think that would be breaking, because then the date template would be rendered. But the idea is good in principle.
  5. Georg Ringer commented on patch set 1 CR +1 V +1 03/11/26, 06:56

    there will be a version 15 when we can remove that, so lets just deprecate it - no stress needed
  6. Oliver Klee voted on patch set 1 CR +1 V +1 03/11/26, 08:16

  7. Garvin Hicking commented on patch set 1 CR +1 V +1 03/11/26, 19:55

    Reply

    I think if we do that we might not need to advocate "will be removed in v15" but instead "may be removed or auto-migrated to the Date element in v15" or something like that. But I'm not blocking this, it's fine by me
  8. Georg Ringer voted on patch set 1 CR +2 V +2 03/18/26, 10:43

  9. Georg Ringer merged patch set 2 03/18/26, 10:43

  10. Lina Wolf commented on patch set 2 05/24/26, 08:27

    Unresolved

    This still needs to be documented in the extensions manual, for example [formEditor](https://docs.typo3.org/c/typo3/cms-form/main/en-us/I/Config/proto/formElements/formElementTypes/DatePicker.html#formeditor)