It is now possible to hide exposed filters in views_filters_selective if they have no value (because their options are limited by the result set). However if none of the filters show the apply button still shows. It should be hidden as well, since it has no purpose.

Members fund testing for the Drupal project. Drupal Association Learn more


snufkin’s picture

Status: Active » Needs review
1.42 KB

Patch adds a count for all the exposed and vfs enabled filters, then at the end of the loop over the filters it checks if there are any left that don't have #access FALSE. If none left it sets access FALSE to the submit.

infojunkie’s picture

Status: Needs review » Fixed

Committed to latest dev. Please try it 12 hours from now and let me know if it works for you.

Status: Fixed » Closed (fixed)

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