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).
Welcome to the nuBuilder forums!
Please register and login to view forums and other content only available to registered users.
Please register and login to view forums and other content only available to registered users.
Lookup Text
-
- Site Admin
- Posts: 2781
- Joined: Mon Jun 15, 2009 2:23 am
- nuBuilder Version: 4.5
- Been thanked: 1 time
Re: Lookup Text
armstrs01,
I don't understand the question (what do you mean return the text?)
Steven
I don't understand the question (what do you mean return the text?)
Steven
-
- Posts: 20
- Joined: Tue Jul 14, 2015 5:00 pm
Re: Lookup Text
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.
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.
-
- Site Admin
- Posts: 2781
- Joined: Mon Jun 15, 2009 2:23 am
- nuBuilder Version: 4.5
- Been thanked: 1 time
Re: Lookup Text
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..
Steven
Hit F12 in your browser and then click the icon in red.
Hover or click this on the fields who's name you want..
Steven
-
- Posts: 20
- Joined: Tue Jul 14, 2015 5:00 pm