Expand my Community achievements bar.

Drop Down field

Avatar

Level 2

I have a drop down that is pre-populated from Access.

The drop down uses both values and text description.

ie: 1, Level 1; 2, level 2; 3, Level 3 etc

In another section of the form, I need to retrieve the text description of a specific value of a drop down based on a different field value.

So my question is:

If I have the drop down populated already, how do I retrieve the text value of item X from a button?

Note: The drop down may be set at 1 (Level 1), I need to retrieve the description of 5 (Level 5).

I was originally thinking about a global array, setting this up on data load, and referencing this, but my understand is that global variables do not work in LC.

Any suggestions would be greatly appreciated.

1 Reply

Avatar

Level 10

Hi,

I am not sure what exactly you are looking for, but there is an example here that may help you:

http://www.assuredynamics.com/index.php/category/portfolio/accessing-bound-and-display-values-of-dro...

Niall