How to add dynamic fields in Sharepoint List through InfoPath? - InfoPath Dev
in

InfoPath Dev

How to add dynamic fields in Sharepoint List through InfoPath?

Last post 09-05-2011 10:32 AM by Patrick Halstead. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 08-31-2011 07:57 PM

    How to add dynamic fields in Sharepoint List through InfoPath?

    Dear guys, My situation is like this: I have a Sharepoint list which includes these fields: {1. Name 2. Phone } What I want to do is that when I add a new item, there is a button under the Phone fields so that after I click this button, I can input multiple Phone like this: { Name: Liu Phone: 1234 Phone: 5678 } After I finish inputting, two items will be added to the Sharepoin List: One is : {Name: Liu Phone: 1234 } the another one is: {Name: Liu Phone: 5678. } In other words, I want to add dynamic fields in the Sharepoint List. Is this possible? If yes, could you tell me how to do it in details. Thank you very much. Theodore
  • 09-05-2011 10:32 AM In reply to

    Re: How to add dynamic fields in Sharepoint List through InfoPath?

    Sounds like the correct solution is to add two rows for it and not new columns (aka fields). You can setup your form to submit twice and create two records. SharePoint List forms are severely limited - they don't support repeating structures. If you want a repeating group, create the form in InfoPath as a blank form and publish it to a Forms Library or as a Content Type. You can add repeating groups to this this XML form and set it up to submit multiple rows to a list using CAML (tricky) or qRules (easy, dynamic). Many people use qRules with InfoPath to not only save to a ShP list but also roundtrip the XML to it.

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