2

I am setting up a view, with the Authored on filter exposed. When selecting the box, there isn't any popup calendar.

Doesn't Drupal 8 come with a calendar popup in core? How can I turn this on for exposed filters with date?

4
  • Check if calendar module is enabled
    – Syam
    Commented Aug 30, 2016 at 15:05
  • How do you solve the problem? Commented Oct 28, 2017 at 0:42
  • try the date module or if not do it manually using a js library for date popups Commented Oct 30, 2017 at 14:53
  • Finally how do you solved the problem? Commented Feb 2, 2018 at 20:42

2 Answers 2

2

This can be done with the Better Exposed Filters module.

Enable the module, set it as the exposed form handler under Advanced -> Exposed form style, on the BEF settings page dialog set the filter display option to "jQuery UI Datepicker". Save everything and you should be good to go.

Note that changing from the default date format may require you to implement hook_better_exposed_filters_display_options_alter.

0
0

You can use the Single Date Time Picker module.

Date time picker form element using the xdan jQuery Plugin Date and Time Picker library - https://github.com/xdan/datetimepicker.

It supports date/time and date fields. You can use it on Datetime and Datetime Range fields.

1
  • AFAICT that doesn't do anything for views filters, only entity field widgets.
    – joachim
    Commented Jun 28, 2018 at 12:16

Not the answer you're looking for? Browse other questions tagged or ask your own question.