Hi
I have a dynamic list that contains text in the display field, but passes back an integer (an identifier to a DB record) in the return field. The list works fine but is it possible to access the display field value as well, through FPL? This is because, I need to perform some logic based on the selected list display field value, and not the identifier in the list return field.
Eg. List contains
Display Field Return Field
Yes 1
No 2
The user selects 'No' and 2 is passed back in the return field but I would also like to access the display value selected which is 'No'.
I know I could go to the DB and retrieve the value based on the returned identifier but as the display value is already on screen it would be good if I could access it directly.
Cheers
Dynamic Lists with different return field
Moderators: Jon, Steve, Ian, Dave
- Jez
- Ebase User
- Posts: 31
- Joined: Thu Aug 21, 2008 11:03 am
- Location: Hampshire County Council
Dynamic Lists with different return field
0 x
--------------------------------------
Jez Hollinshead - Hampshire CC
Jez Hollinshead - Hampshire CC
-
- Moderator
- Posts: 415
- Joined: Fri Sep 07, 2007 3:44 pm
- Location: Sandy, UK
- Contact:
Re: Dynamic Lists with different return field
Hi Jez,
you can use field.getDisplayValue() to get the selected display value.
e.g:
Kind regards
Steve
you can use field.getDisplayValue() to get the selected display value.
e.g:
Code: Select all
//F1 is a dropdown list
var display = fields.F1.getDisplayValue();
var selected = fields.F1.getValue();
event.getOwner().addInfoMessage("Selected display value: " + display);
event.getOwner().addInfoMessage("Selected value: " + selected);
Steve
0 x
- Jez
- Ebase User
- Posts: 31
- Joined: Thu Aug 21, 2008 11:03 am
- Location: Hampshire County Council
Re: Dynamic Lists with different return field
Thanks for the reply Steve but is there an FPL equivalent?
0 x
--------------------------------------
Jez Hollinshead - Hampshire CC
Jez Hollinshead - Hampshire CC
Who is online
Users browsing this forum: No registered users and 12 guests