I have a list of sites, across several countries, that I display in a list. I want to be able to filter and only show the sites for the country that the user is currently in.
Is there a way I can do this automatically by getting the user’s location/IP and matching it to the country?
How would I do this with the choice component?
If I had to ask the user for their country, is there a way I could store it so that I wouldn’t have to ask them again?
Thank you so much in advance for all and any answers!
Here, your best friend should be the filter on the choice components.
2 columns : Country with sites in front of each country
2 choice components: first with source value “country”, and second “sites”
On the “sites” choice component, apply a filter on “country” is “screen > country” (which means the list of sites will be restricted to the country selected in the screen).
So the one caveat for this app is that it is a public app. There are no user accounts and we don’t want to store user info or ask them to sign up.
Is there a way we could use one choice component to ask a user what country they are in, and then show them a list of all the sites that have the same country?
Site_country_name is screen’s site_country_name_user_input. Assuming you’re letting the user write to the input column, and you have a column name in the sheet where you are storing sites.
Yeah I’m not letting the user write to anything. I want to display a list of sites based on the country a user picks. The user then clicks on a row in the list that opens a link.
So, I want to filter a list of predetermined sites based on a list of predetermined countries that said sites exist in.
A choice component needs a place in your database to store the choice of the user. You can just add a user-specific column in the table that you built your screen on to do this.
Then, filter the inline list based on the chosen value.