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?
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
Comment #2
ZapevalovAnton commentedComment #3
maximpodorov commentedWht do you mean by default values?
Comment #4
dbrouard commentedHi, 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