Creating an unbound text box for each list item - InfoPath Dev
in

InfoPath Dev

Creating an unbound text box for each list item

Last post 08-26-2016 03:22 PM by Hilary Stoupa. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 08-26-2016 12:52 AM

    Creating an unbound text box for each list item

    Hi all, I have done a quick search but not sure I was using the correct query to find out if this has been discussed before. Anyway, I'll give you my scenario.

     

    I'm looking at building a timesheet for a project to record the number of hours which have been spent on that project. I have a custom list within SharePoint 2013 which contains a number of users from a user picker field called Team Members. Within my InfoPath form I would like to bring those field values in, and have a text box next to each user within which I can record the hours that team member has spent this week. So it would look something like this:

    Member 1 [  ]
    Member 2 [  ]
    Member 3 [  ]

    This needs to be a dynamic list because the team members may change as the project progresses. Then when I click submit, I'll add the hours together in order to report the total time spent and store it within the Forms Library that this form will reside in.

    I have managed to get the members repeating in the form using both a Repeating Table and a Repeating Section, however I don't seem to be able to add a textbox next to them which is unbound.

    First of all, is what I'm trying to do possible? If so, any guidance would be most welcome.

     Thanks in advance 

  • 08-26-2016 03:22 PM In reply to

    Re: Creating an unbound text box for each list item

    So - for InfoPath, we can only store data in the main data source. This means you need a repeating table in your main data source with the same number of rows as you have users in your list. And that is NOT easy in InfoPath - there are no rule actions for adding repeating nodes. Do you have an idea of about the max number of Team Members you'd ever have? You may be able to do this with Default data in IP if you know the max. If not, this will take code or something like qRules. Sorry, I know this isn't anyone's favorite answer.
    Hilary Stoupa

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