'List' component: getting selected TEXT not index

Hi,

I have a List component populated by a SQL query. The only property I can see relating to the selected item is SelectedIndex. I’m very new to Ignition so excuse the possibly dumb question, but how can I get the selected item’s text rather than the index?

To give some context:
The items in my List are tank numbers e.g.
9001
9002
9003
9004
9005

Upon selecting an item and then pressing a Load button, I want to be able to pass the tank number to the page parameter.
Note: the List will be filterable and so won’t necessarily always start at ‘9001’ (it could start at 1453 for example).

Cheers!

Nick

Did you try the code snippet at the bottom of the docs? If so, what happened?

This works perfectly :slight_smile: Sorry, I’m still very new to Ignition :blush: