So, if a user enters a pincode, using some API calls and parsing JSON responses, I can create a list of locations using split text. I am stuck with being able to show these locations in a choice component for the user to select the location.
Looks like I am missing something as logically, it should be possible. There are days when a small challenge knocks the wits out of you, and you start learning Glide all over again!!! Any Help?
Thanks @Uzo for the quick revert. These locations are generated dynamically based on the pincode entered in a text field. Can you guide me on the method to create a vertical list using if-else column?
In the screen above, I am collecting the pincode from the user in a text filed and store it in a user column. Next, I use google maps API to generate a list of locations around that pincode. I use a template column to clean up the list of locations and use split text column to store the locations as separate items.
then you cant convert to vertical… unless is a fixed number of locations that you wanna show… then you can create that many columns and pick the corresponding text
Hola @Paresh_Srivastava
What you need is something like this so that your choice component can use the Name as Option column in its Values parameter:
Here my step-by-step guide if you want to use it:
This is my Param table where I have my results as a List and as an Array (similar to what you have)
In a new table (maybe?), create a new index column (e.g. IDX) with values from 0 to N. If your API returns always 8-11 locations so, create 14-15 rows with a valid numeric sequence as plan B
Create a Single Value column to bring my Name Array column from Param table in order to select array items at any moment.
Finally, create another Single Value column to choose the array item (Name) dynamically based on IDX value
Thanks @Robert_Petitto ,
This is of immense help!
I Have been a huge fan of your expertise on glide and have learnt a lot from your videos and really appreciate the time taken to explain the same in such clarity and detail.