🌪 Use Multiple Choice Components to Filter an Inline List

Just follow whichever that is easier to understand to you, so you can debug it yourself it something happens in the future.

On which screen do you want to filter by multiple choice components in your app?

I have to decide this, but I think the map! So I understand I need to add a map in detail view and work from there to be able to add choice components. But I take it this won’t automatically filter any lists alongside it just the pins…so I imagine I’ll need to set up filters both for the map and for an inline list… :see_no_evil:

Yes, firstly you need a details view screen, then add the choice components to write the choices.

A map is just another inline list, you will filter that inline list based on the choices of the user. Just add the filters to any inline lists you want to be filtered.

1 Like

Ok thank you - so filters apply to lists not to screens yes?

They can be applied to either. In this case, though, you’ll apply the filter to the list.

2 Likes

Thanks so much I got it now I think! So the choice components appear like a screen filter for 2 inline lists under each other (just one in map view), with the same filter applied

Does anyone know why this happens? The boxes were ticked in a similar test app I made, since the single vlaues are empty. Are there any glide table values that can generate filter errors?

What conditions are you using there for the If Then Else columns?


I’m using these settings in the screenshot

Just for laughs, type ā€œfalseā€ as the else condition

1 Like

I think I ran into this the other day. It seems that if a single value column is pulling an empty value, then an IF won’t recognize it as empty. Seemed like a bug to me, the way it was acting. To get around it I had to add an IF on the table that contains the value to check if it’s empty, then have the single value column pull the IF value instead of the original value.

2 Likes

I tried! no change still…

I added an IF column as you suggested and referred to it instead of the word empty in the If-Then columns, that seems to have worked! Thank you very much for your help!

1 Like

When I mentioned an IF column, I meant an If-Then-Else column instead of an empty basic text column. I’m not sure where your ā€˜Availability Single’ column is pulling it’s value from, but wherever that source value is located, is where the If-Then-Else column would be located be and would check if that source value is empty. Then the result of that If-Then-Else column would be the source of your single value column.

However, it appears that the way you did it is working as well, but I would do some extensive testing to make sure. If it works well for you, then you should be good to go.

Ah ok sorry that’s how I interpreted your guidance, yes the empty text column could be called anything I realise! Perhaps it didn’t like the word empty for some reason…

So far so good with testing…! :pray:

1 Like

Inline list in Tiles view filtered via choice components

2 Likes

Hi Robert

is there any other examples with multiple inline list?

I have 2 choice component with 3 inline list.

Can you tell me the link to copy?

Hi @Robert_Petitto

Have used this multiple choice with inline list example.

But I have one problem to solve,

I’m having 2 choice component and 1 inline list.

Your examples test cases are working as expected.

But I need to show only the respective choices in the second choice component.

If it is electronics,it should should show TV,Phones, Refrigerator

If it is clothing,it should show Shirt, Tshirt,Saree

Have given visibility for second choice component,after selection from first choice component.


You also need to filter the second choice component based on screen>first choice component