Drop Down List Box Question - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Drop Down List Box Question

Last post 12-22-2004 05:15 PM by Greg Collins. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 12-21-2004 01:22 PM

    Drop Down List Box Question

    I have a drop down list box in which the underlying value is a numeric ID# but the display value is a text string. I am using code to access the selection in the drop down list box as follows:

    myVar = XDocument.DOM.selectSingleNode("//my:myFields/@my:dataFilter").text

    This returns the numeric value however and I cant figure out how to capture the displayed text string. If anyone has a solution, please let me know!!!
  • 12-22-2004 05:15 PM In reply to

    Re: Drop Down List Box Question

    You need to go back to the original source that the drop-down list is populated from. Then you filter that list based on the value of the field to which the drop-down is bound (@my:dataFilter) and grab the display name from that filtered list.

    Greg Collins [InfoPath MVP]
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.