I have a page view with exposed filters (4 checkboxes with ajax calling) which user can change.
I want to change default search, to searching only results which appears in this view.
How can I do that?
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.
Sign up to join this communityI have a page view with exposed filters (4 checkboxes with ajax calling) which user can change.
I want to change default search, to searching only results which appears in this view.
How can I do that?
Views filter populate should help you with your issue. What you need to do is don't expose the Title, Body, and Location in the Filter Criteria of your view. Then add Populate filters and expose it and select Title, Body, and Location as your filters.
I think you want your view to display results ONLY when one of the checkboxes is checked. Am I right ?
If it's the case, in your view's Exposed Form section, you have to choose Input required
as the Exposed form style.
Click on the Global:Populate filters (exposed) Under Filter Criteria, make sure your body and location are checked.
Also, make sure your Operator are set correctly. For instance, set your Filter Criteria to something like this: