How to dynamically populate drop down value? - InfoPath Dev
in

InfoPath Dev

How to dynamically populate drop down value?

Last post 09-18-2008 04:29 AM by Shiva. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 09-12-2008 03:09 AM

    How to dynamically populate drop down value?

    I have an infopath form and added an external data source (web service) that returns xml in the following format:

    <questions>
        <question>
              <questionID>1</questionID>
              <questionText>Choose Color</questionText>
              <choices>
                      <choice>
                            <displayname>Red</displayname>
                            <value>1</value>
                      </choice>
                      <choice>
                            <displayname>Green</displayname>
                            <value>2</value>
                      </choice>
                      <choice>
                            <displayname>Blue</displayname>
                            <value>3</value>
                      </choice>
              </choices>
        </question>

        <question>
              <questionID>2</questionID>
              <questionText>Choose Color</questionText>
              <choices>
                      <choice>
                            <displayname>Germany</displayname>
                            <value>49</value>
                      </choice>
                      <choice>
                            <displayname>Singapore</displayname>
                            <value>65</value>
                      </choice>
              </choices>
        </question>
    </questions>

    I created a repeating section for the questions, but I want the choices to be displayed in a combo-box, instead of another repeating table/section.
    How do I supposed implement this? 

    Any kind of help is greatly appreciated.

  • 09-18-2008 04:29 AM In reply to

    • Shiva
    • Top 25 Contributor
    • Joined on 04-15-2005
    • India
    • Posts 694

    Re: How to dynamically populate drop down value?

    Hello Welcome to the Forums,

    Populating dynamically values for drop down you have to add/modify the values for the external data source using code.

    For drop down, list box entries should be point to ‘choices' node then you will get all the choices value in your drop down.

Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.