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.
If I hide all the exposed filters I still want to be able to filter the view with url query strings
better_exposed_filters_exposed_form_plugin.inc line 775
// If our form has no visible filters, hide the submit button.
$form['submit']['#access'] = $show_apply;
$form['reset']['#access'] = $show_apply;
should be
// If our form has no visible filters, hide the submit button.
if (!$show_apply) {
$form['submit']['#attributes']['class'][] = 'element-hidden';
$form['reset']['#attributes']['class'][] = 'element-hidden';
}
Comments
Comment #1
mikeker CreditAttribution: mikeker commentedIssue queue cleanup. My apologies for taking so long to get to this issue.
Using
element-hidden
is a much better way to handle this. Thanks! This also pointed out an issue where a pager of any short would show the apply button.