Skip to content

[RFC] Form widget override/customize (input type date datetime-local month ...) #12817

@smarek

Description

@smarek

This is a (multiple allowed):

  • [] bug

  • enhancement

  • feature-discussion (RFC)

  • CakePHP Version: 3.6.13

  • Platform and Target: LNPM

This discussion was ongoing for the last years, as far as I can tell. Reference tickets might be:
#1888
#12537
#7254

and of course lots of stackoverflows and similar

Existing date/date-time widget is technically correct, working, however not user friendly.

Existing recommendations, such as input[type=text]+jQueryUI, Form->text instead Form->control, or string replacing type=text with type=date are not satisfying neither systematic

Documentation on topic of providing custom widgets allows users to create custom implementation, however that requires every Form control call to be annotated with correct widget type, which is again unpleasant.

Would it be possible, either by documentation or new feature, to override default widgets (either configuration override or subclassing of ie. DateTimeWidget ) to provide custom implementation to use on default field types, such as date, timestamp, etc?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions