Problem/Motivation

It would be great if the form widget can be used in basic views exposed filter as well as using the better_exposed_filters module. The default date format needs to be configured the same way as datetime_flatpickr configuration.

Steps to reproduce

Proposed resolution

A sub-module can be added for the better_exposed_filters module support.

Remaining tasks

User interface changes

API changes

Data model changes

Comments

madelyncruz created an issue. See original summary.

nagy.balint’s picture

It seems that to use it in the normal exposed filter we would have the following options:
- Override and replace the Date filter handler class (since Drupal does not provide any filter widget plugins)
- Create a new handler for the datetime fields
- Create a generic configuration form which can inject the flatpickr library on any item based on a selector and with the generic config (might not work out)

The better exposed filter could work better as that module provides the mechanism to define a widget. Of course it also brings in the dependency, but as a sub module it could be fine.

Madhu Kumar M E’s picture

The Better Exposed Filters module integrates with the date type fields, including the date popup. You can use this module to easily add an exposed filter with the date popup.

nagy.balint’s picture

Status: Active » Fixed

I added initial BEF integration. For now only default config and date only.

This can be extended later with the ability to define the settings as well in a follow up issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.