How to show search (filter) by name and city? 1 and 2 options

hello help me how to make my search more flexible so that I can write the name and city? I have an ad base, when I create an ad, I send it to the screen that updates this ad according to the search index parameter that I entered in the ad base. on the main page there is a list of ads and search the list of ads is filtered by search input, it works, but only for one indicator, I enter the name and see, ok, I enter the city and see ok, but when I enter the name and city it does not show anything. I think there is a live hack how to do it, but I haven’t found it yet, tell me if you know, thanks


@Flawless thanks for the answer in the last post :muscle: do you know how to make the filter smarter?

You could add a 2nd screen called “Search Filters” that contains multiple inputs, checkboxes, sliders, etc.

In your case, place 2 inputs on that new screen, one for the name and one for the city. You can use these 2 inputs to filter your list on the previous page.

1 Like

thanks for the answer, yes I understand what can be done if there are 2 inputs, but how to do it for one input ? so that everything is displayed in one

I don’t believe it will work like that.

Unless you try multiple “OR” conditions to the list.

name contains search input
choice category contains logged-in user > user choice
OR
city contains search input
choice category contains logged-in user > user choice

doesn’t work like that. I think there is a way to do this, maybe put some sign in the update where the filter starts, I will try to find a solution