I haven't seen this addressed anywhere, so please forgive if this is a duplicate issue.

The title is self-explanatory - if there's a default selection, one should have the option (at least) in setting up the view that reset would return to the default selection, not to "Any."

I see there's been a lot of work on exposed filters and I've been through the below to get things working somewhat:

1. #1109980: Exposed Form Reset button Inherits the page display URL when using as a block and AJAX - Reset directs to home page (workaround)

2. #1810148: Grouped exposed taxonomy term filters do not work because the group key is added to the query and not the taxonomy ID - Grouped taxonomy broken (patch fix)

3. #1881884: Reset does not work broken on pages with multiple displays. - Reset resets all filters on page (broken)

#3 is a showstopper right now - I'd be willing to contribute to get all this working, if that helps. Thanks for any help here!

Comments

klonos’s picture

Issue summary: View changes

...changed links to issues to their respective [#xxxxxx] equivalents ;)

kopeboy’s picture

I'm having the same problem or similar.
Still no comments?

When I use a default filter different than "- Any -" on taxonomy terms in a Views Page, it doesn't work automatically on page load (without filters in the URL).

The filter inputs are shown in red, requiring to be set, and I get an error message in admin like "Invalid choice.." instead.

I already applied a patch for grouped taxonomy terms. This default option didn't work before the patch neither it does now.

The feature I'm trying to implement is having a default option name different than "Any". So I made the filter grouped, with an option (selected as default) of value "is one of" -> all the terms selected.

If I use the provided "-Any-" instead, it just works.

I cannot rewrite the string "- Any -" because I have 3 filters and I want a different default name on each one.

It's interesting to note that the default custom option does work in a grouped filter on numbers (ubercart price in my case) instead of taxonomy terms.

mustanggb’s picture

Issue summary: View changes
Status: Active » Closed (outdated)