I have views with 3 filters. If I send GET parameters as the filter name and attach values. The default values for filters work fine.
How to set the default values from custom code?

Comments

ZapevalovAnton created an issue. See original summary.

ZapevalovAnton’s picture

Issue summary: View changes
maximpodorov’s picture

Wht do you mean by default values?

dbrouard’s picture

Hi, I think I know the problem, I think we have the same one.

We have a reference filter, but we want that the view is filtered by default by one of them. I'll give you an example:

- view with events for different seasons: 2015-2016, 2016-2017
- filter by season
- by default, we want the view pre-filtered for season 2016-2017

We can force it appending the filter param at the URL, we it's not the proper solution.

Cheers, Diego