I'm sure this is simple and may have been asked before (sorry I can't find it).
If a dropdown list has bound values, in javascript, how do you interrogate the displayed text of the field..
DropdownList1.rawValue returns the bound value, so how would you get the text?
Thanks
Solved! Go to Solution.
Views
Replies
Total Likes
Views
Replies
Total Likes
For example, I have a dropdown called 'stooges' with values 1, 2, 3 and text Larry, Curly, and Moe.
var i = form1.page1.subform1.stooges.selectedIndex;
var favoriteStooge = form1.page1.subform1.stooges.getDisplayItem(i);
Steve
or simply DropDownList1.formattedValue;
Paul
Views
Replies
Total Likes
or xfa.event.newText
even less typing
Steve
Views
Replies
Total Likes
Thanks Steve,
Sorry - but Paul get's the points though
I've seen it before, but you use rawValue you much, you forget about formattedValue when you need it
Views
Replies
Total Likes
Views
Likes
Replies