Seems that some users of the Better Exposed Filter module have created a functionality very similar to this Auto-submit submodule.
#797772: Make Apply button redundant (instant filter)
Their main issue is that this Auto-submit submodule doesn't allow for any granularity in settings -- it's either the whole view page or nothing at all. They'd like to see the ability to turn on auto-submit for certain exposed filters, but not others.
Anyone know whether this is feasible with the way the views hacks submodule is put together?
Also, any thoughts on whether auto-submit functionality belongs in View hacks, or whether BEF should take over? My personal feelings are that it belongs over here, since someone may way auto-submit without wanting their select lists to turn into radio or checkboxes (which is what BEF does). But hey, maybe I'm wrong.
Comments
Comment #1
infojunkieThanks for the suggestion. To anyone who wants to submit a patch: I'll gladly review it.
Comment #2
patcon CreditAttribution: patcon commentedThanks for reply infojunkie.
If I need this functionality in the future, I'll definitely contribute back. For now, I'll leave a note in the other thread that you're willing to accept patches.
Comment #3
infojunkieYou can also use
hook_views_filters_autosubmit_exceptions($form, $view)
to return input ids (i.e., client-side DOM ids) that should be ignored by auto-submit. I just added the$view
parameter, so you will need to wait 12 hours until the dev release is refreshed. Let me know if this approach can help you.Comment #4
patcon CreditAttribution: patcon commentedThanks infojunkie. There's also something to do with the Select All/None links that BEF adds, but I'll look into that when the time comes.
Not sure if I'd go this route, but any thoughts on whether you'd want to avoid a ctools dependency?
dereine used it in his version for BEF:
http://github.com/dereine/Views-autosubmit-exposed_form
Comment #5
patcon CreditAttribution: patcon commentedComment #6
AdrianB CreditAttribution: AdrianB commentedTracking.
Comment #7
jsheffers CreditAttribution: jsheffers commentedSubscribed would love this functionality!
Comment #8
goldlilys CreditAttribution: goldlilys commentedSubscribing. Using BEF radios and whenever I click on a button on one view, it changes all of the other views in the same page as well. Which shouldn't happen.