Return the index number of an item in a list

Hello!

I am trying to create a dynamic text box that displays the nth number of an item in a list. The item that we want to evaluate is given by a drop-down input.

Example:

List of numbers:
5, 3, 2, 1, 1.

Drop-down input=2.

I want a dynamic text box to return “3” since number 2 (selected in the drop-down input) is the 3rd item in the list.

I would appreciate any help to do this. Thanks in advance!

Do a search for: Numbers:Item#(Dropdown’s value)

hi @robert , is there a way to find INDEX number of a specific item in a List Field ?

For ex. - There are 2 lists : List A (Case-Numbers) & List B (Dates). Now, we want to check ‘Case_Number’ from List A, & then Fetch its ‘Date’ from List B. How can this be done?

I’m trying to do this to. It doesn’t seem like you can, which is absolutely absurd.

Here’s how you can get the index of an item in a list:

1 Like

Thanks for the response Adam.
working thins

Here is an image of programming of the functionality.

While this does work, it’s absolutely insane that this workaround is the only way to do this. This should be a default, built in function.

3 Likes

What in the world?

This is what we have to understand to get to the number of an index position in a list? How is something so basic and so simple not easily supported in Bubble.

Is there a way to get to the index position of a list of things easily? Where in documentation from Bubble can I find where it tells me how to do this?

I use this plugin: 1T - Index Finder Plugin | Bubble

Thanks. It seems at every turn for basic things a plugin is needed.

this wouldn’t work if the items aren’t uniquely named