2

In Drupal 8 am trying to add date pickup popup calendar in our custom search form. Search Page is created by Views page and adding DOB field by the date field expose.

But there is no option to add date popup calendar in views. While date pop up calendar is showing in the "Add Content" page in admin area.

Any idea how can we show datepicker calendar on date field?

1

Try the contrib module Better Exposed Filters. At the 'Exposed form' settings in your view you can select 'Better Exposed Filters' after enabling BEF. After selecting the exposed form method you should have more options per field, a datepicker is one of them (on date fields).

1

This is a discussion in Use form element of type date instead textfield when selecting a date in an exposed filter.

Problem/Motivation

When adding a datetime exposed filter I cannot simply select a date - I have to manually enter a date which is very bad UX.

I have installed the patch #71 with Drupal 8.2.6 and it works.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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