16

I'm using Drupal 7 with views 3.

I have used an exposed filter for a date field and I want to provide option to choose date from datepopup for date filter? How can I do this?

13

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.

There are some known issues with BEF's integration with the date module; from the module page:

(Note: Support for fields supplied by the Date module is a little funky until #392836: Exposed Date filter format (in Views) and/or #502824: Date format in exposed filter (views) are resolved).

Also, you can only add this type of filter to entity fields at the moment, not properties. There are various discussions going on about this.

  • 4
    Note that the module which enables this on BEF is date_views. – cherouvim Jul 4 '12 at 12:43
  • Some more details on how to implement this would be helpful. – doub1ejack Oct 27 '13 at 16:59
12

You don't need BEF to get popup calendar with exposed view filters. You just need "Date pop up" and "date views" submodules.

  • When creating new exposed filter in "Filter" dropdown select "Date"
  • then choose the Date filter
  • choose a date field (for instance "Date: Date (node)")
  • in extra settings config , in the "Date selection form element" section select "Popup"
  • follow other regular steps.

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.