1

I'm creating a view. By default, I want all results shown, with an exposed filter for 'has a value' (aka is not empty) and 'is empty'.

I cannot figure out how to make the exposed filter work for this. If I make the exposed filter on either 'is empty' or 'is not empty', it filters the values initially based on that section. I only want the exposed filter to take effect when the value is in the URL.

Can anyone point me how to do that?

1 Answer 1

1

You can configure your exposed filter with these configurations to show all the content in the initial state:

  • Check: Expose this filter to visitors, to allow them to change it
  • Filter type to expose: Single filter
  • Operator: Is one of
  • Selection in the RHS: Do not select anything.

Once you save this, your view should show all the results when view output is rendered, and filter the results based on the exposed filter selection.

Hope this helps.

1
  • Thank you. It's a text field, how ever 'is one of' is one of the options.
    – Jaypan
    Aug 19, 2021 at 14:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.