Single column in SharePoint list to populate drop down list in InfoPath form? - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Single column in SharePoint list to populate drop down list in InfoPath form?

Last post 04-14-2021 09:02 AM by Hilary Stoupa. 15 replies.
Page 1 of 2 (16 items) 1 2 Next >
Sort Posts: Previous Next
  • 08-02-2013 11:06 AM

    Single column in SharePoint list to populate drop down list in InfoPath form?

    Hello - first post here and new to InfoPath...

    I'm looking for ideas with examples on how to populate a drop down list field on my InfoPath 2013 form from a single line of text column in a SharePoint 2013 list when another text column in that row contains the word "List"? The columns with these values are in the same row. I have a data connection (secondary) to the SharePoint list set up and the text column contains "A;B;C;D;E" (for this example, to keep it simple). The delimiter for the choices is the semi-colon.

    So, in the SharePoint list I have
    single line of text named Value1 containing "A;B;C;D;E"
    single line of text named Field_Type1 containing "List"

    I would like to populate the drop down list on my InfoPath form to have the choices:
    A
    B
    C
    D
    E

    My thoughts are to somehow populate a repeating field (that the user won't see) in the form's main schema from the list's values and then use the repeating field to populate the drop down list. Is this possible? I am using a Form Library and I can use VB code behind if it can't be done in rules only, or is much simpler in code.

    Hope I have explained it well enough. Looking forward to your replies!

  • 08-02-2013 02:09 PM In reply to

    Re: Single column in SharePoint list to populate drop down list in InfoPath form?

    I attached an example.

    Patrick Halstead
    Project Manager at Qdabra
  • 08-03-2013 05:12 PM In reply to

    Re: Single column in SharePoint list to populate drop down list in InfoPath form?

    Thank you! Shows exactly what I need to do.
  • 08-06-2013 09:12 AM In reply to

    Re: Single column in SharePoint list to populate drop down list in InfoPath form?

    Patrick,

    Is having a repeating table necessary for this to work? I don't have one in my form, but I have duplicated everything else in your sample. When I preview mine, I only get the first item in the delimited text string to appear in the drop down list box.Curiously, I deleted the repeating table from the form in your example and it still populates the drop down list box just fine. I don't understand why your sample still works and mine (that never had a RT) doesn't.

    If the RT is necessary for the way you set your example up, can it also be accomplished in a way that doesn't use a repeating table?

    Thanks.

  • 08-10-2013 11:10 PM In reply to

    Re: Single column in SharePoint list to populate drop down list in InfoPath form?

    Yes, you need a properly repeating structure.

    Adding one with default values should resolve your issue.

    Patrick Halstead
    Project Manager at Qdabra
  • 08-13-2013 12:47 PM In reply to

    Re: Single column in SharePoint list to populate drop down list in InfoPath form?

    Please take a quick look at my attached form. I have tried to duplicate what you have done, but I can only get 1 row to extract into both the repeating table and drop down list. Hopefully, you can tell me what I'm missing?

    Thanks!

  • 08-18-2013 05:28 PM In reply to

    Re: Single column in SharePoint list to populate drop down list in InfoPath form?

    That's because you don't have any default values for your rows.

    Go into Data->Default Values. Expand group1 and select group2 and choose the dropdown on the right and add a bunch of rows. Preview again. Works now. :)

    Patrick Halstead
    Project Manager at Qdabra
  • 08-19-2013 06:14 AM In reply to

    Re: Single column in SharePoint list to populate drop down list in InfoPath form?

    Awesome! I wouldn't have found that. I was incorrectly thinking the convert rules did the row adding.
  • 06-18-2014 06:17 AM In reply to

    • Andrew
    • Not Ranked
    • Joined on 06-17-2014
    • Posts 4

    Re: Single column in SharePoint list to populate drop down list in InfoPath form?

    Hi, I have been trying to figure out how to do this exact thing and this is the first post i've found that is my problem exactly!

    Unfortunately though, I have InfoPath 2010, and it will not open any of your all's attachments (says I need a newer version of InfoPath).

    Would someone mind saving the latest ConvertDelimited.xsn that was posted by Patrick as an InfoPath 2010 compatible form and then uploading it so that I may download it (I assume just File --> Save As)?

    Thanks so much to whoever can do this for me!

  • 06-18-2014 11:18 AM In reply to

    Re: Single column in SharePoint list to populate drop down list in InfoPath form?

    You bet - here's a 2010 version. File > Save As then right click and select Design. :)

    Hilary Stoupa

  • 06-19-2014 04:39 AM In reply to

    • Andrew
    • Not Ranked
    • Joined on 06-17-2014
    • Posts 4

    Re: Single column in SharePoint list to populate drop down list in InfoPath form?

    Thanks for the response! I just right clicked on the file attached to your post and saved it to my desktop, but it still says the same message when I try to open it, in either Design mode or Filler mode.
  • 06-20-2014 08:14 AM In reply to

    Re: Single column in SharePoint list to populate drop down list in InfoPath form?

    That's odd. Here's another try - hopefully this time I managed to really save it as 2010.

    Hilary Stoupa

  • 06-30-2014 04:30 AM In reply to

    • Andrew
    • Not Ranked
    • Joined on 06-17-2014
    • Posts 4

    Re: Single column in SharePoint list to populate drop down list in InfoPath form?

    That one did it! Thanks so much!!
  • 04-14-2021 06:13 AM In reply to

    • Kgiles
    • Not Ranked
    • Joined on 12-02-2019
    • Posts 2

    Re: Single column in SharePoint list to populate drop down list in InfoPath form?

    I copied your example to the T but only one row will populate from the repeating table. I tried to type this into the ID field value but it would not accept it. I ended up having to click Edit Xpath in order to get the formula to take. I'm thinking this is the problem area. Please help when you have time. Thank you
  • 04-14-2021 06:23 AM In reply to

    • Kgiles
    • Not Ranked
    • Joined on 12-02-2019
    • Posts 2

    Re: Single column in SharePoint list to populate drop down list in InfoPath form?

    Nevermind :) All I had to do was read. Thank you!
Page 1 of 2 (16 items) 1 2 Next >
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.