Why is this error with elements in list picker occurring?

Hello, i would like to thank you for your time.

I am having a problem with an app I'm making. Here is the issue I'm running into...

What i'm trying to do-
I have made a list

I have set this list as the element for a list picker

Screen Shot 2022-10-30 at 2.17.34 PM

After the user selects an item from the list, I set two different variables to the term the user just selected using the blocks below and then I use the procedure also shown below

I use two different web viewers to get two different results.
The web viewer home links are set to the search links for both the websites, Yt and Spotify. I have made it so that it goes to the that search url and adds the search term, while also replaces any spaces with either a + or %20 for the respective websites.

When I pick something from the list picker, the error message at the beginning of this post appears on both my phone and the app inventor screen... Do you know why this is the case? Is it that you cannot have text values in the situation I'm using the list in?

Thank you for helping...

e7b53d70f386b51792a34077e5eb5cf449198199_2_690x485

You already have the selection, which is the piece of text you wanted from the list.

It is not a number, and there is no point to trying to use it as an index into that same list.

2 Likes

Thanks for taking the time✨