I have list of numbers for distance like 10, 20, 30, 40 as part of dropdown list. Now I would like to use this numbers to as part of map data constraints apply search within range, but bubble is always considering dropdown list’s value as text and not providing way to convert it to number.
Is anyone has any clue to convert dropdown list’s value to number?
So practically I would like to truncate first two digits from dropdown value if value is not ‘Entire City’. Then I would like to convert it to number and use it for map constraint.
You’re thinking too hard about this. In the table I was talking about, just add another field that has a data type of TEXT. That text would be displayed in the dropdown as “10 Mile”, “20 Mile” etc.
Now for the Entire City option, add that item to the database table WITHOUT a number. Then you can use a condition in your map that goes something like this: