I need some advice about the following:
I've created a view together with a search form on one page. The search form contains two fields: Color and Size. Initially, I made both fields mandatory and filtering works fine.
However, I want to make both fields optional. This means, when nothing is filled in, all entries are shown. When only the Color field is filled in, all entries with the same Color are shown and the Size field is not relevant. When only the Size field is filled in, all entries with the same Size are shown and the Color field is not relevant. When the Color field and Size field are filled in, all entries with the same Color and the same Size are shown.
How can this be achieved?
Thanks in advance.