how to get text value from value list based type ahead

Hi,

I have a type ahead styled field. It is based on a value list. The value list displays a name and the dataprovider is an id value.

I am looking for a way to get the textual value(displayed value) from a typeahead style field using an id number as the value.

Example. fld1 is a typeahed… the user types “hello”…the text value is hello, but the id is 1. I am looking to retrieve “hello” programmatically.
None of the following work for me…
elements.fld1
eval(elements.fld1 ).valueOf()
foundset.fld1
fld1
elements[‘fld1’].text
elements.fld1.getSelectedText()
forms.form1.fld1"
forms.form1.fld1.substr(0)
forms.form1.fld1.equals()
forms.form1.fld1.toString()
eval(forms.form1.fld1)
forms.form1.fld1.valueOf()

How exactly can I do that?

thank you.

Hi,

There is a function to do that:

application.getValueListDisplayValue(valuelistName,realValue)

Sanneke

Thank you that worked perfectly!!!