Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#1 | 1021394-views_filter_selective-hide-apply.patch | 1.42 KB | snufkin |
Comments
Comment #1
snufkin CreditAttribution: snufkin commentedPatch 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.
Comment #2
infojunkieCommitted to latest dev. Please try it 12 hours from now and let me know if it works for you.