Page 1 of 1
Lookup Text
Posted: Fri Aug 21, 2015 12:48 pm
by armstrs01
Another newbie question about the Lookup object...
How do I return the text from the Code Field or Description Field part of a Lookup object in Javascript?
In the example below, either "W0005F-03" (Code Field) or "eFX Relocation..." (Description Field).
mylookup.jpg
Re: Lookup Text
Posted: Mon Aug 24, 2015 7:29 am
by admin
armstrs01,
I don't understand the question (what do you mean return the text?)
Steven
Re: Lookup Text
Posted: Tue Aug 25, 2015 4:31 pm
by armstrs01
I want to be able to use the text from the Description part of the lookup in a Javascript alert message.
I want to be able to use/display the text "eFX Relocation (SWD Pre-Prod to TSQ Phase 2)" but I don't know how to refer to (get) that part of the Lookup object. If is say something like alert($('#ReleasedProj_ID').val())); I get the underlying code id, when I really want the Description.
Re: Lookup Text
Posted: Thu Sep 03, 2015 1:18 am
by admin
armstrs01,
Hit F12 in your browser and then click the icon in red.
Hover or click this on the fields who's name you want..
fieldnames.png
Steven
Re: Lookup Text
Posted: Mon Oct 19, 2015 12:22 pm
by armstrs01
Got it! Works a treat.
Many thanks.
Re: Lookup Text
Posted: Tue Oct 20, 2015 1:23 am
by admin
.