Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am editing one of my list forms in Infopath and am trying to make one field a repeating section so a user can add multiple items within this form. I have got the repeating section to work, but what I am not sure how to do is have only one field be the repeated (changing) value and the others to be input once and added as-is for every new repeated item.

For example, if I have a list with two fields "Title" and "Item", I would like Title to not be a repeating section, but Item would be. As the user adds new Items in this form, it would not be necessary to input another Title for each repeat since for every Item the same Title would be submitted in the form. So after clicking on the Item repeat, the only additional input field would be Item, and Title would stay at the top.

Thanks for any help on this!

share|improve this question
add comment

2 Answers

As the user adds new Items in this form, it would not be necessary to input another Title for each repeat since for every Item the same Title would be submitted in the form.

No need to repeat the title, as you can define default value for it (also dynamically - with expressions and rules) chnaging it for different users and forms.

So after clicking on the Item repeat, the only additional input field would be Item, and Title would stay at the top

For this you'd better publish/submit to library instead of to sharepoint list and have non-repeating data fields outside of group data fields in Fields pane. Note that controls, on design surface of Infopath Designer, are just visual containers bound to data fields (it is possible to have controls unbound to data fields, and data fields without visual representation and various combinations when controls structure is unrelated to data structure).

.

share|improve this answer
    
I wouldn't want a default value for the Title. Title should be user-input, and that should only have to be input once on the form, with all the other repeated items submitting that one-time-input title. I have already tried to split the Title field outside of the repeating sections, but when I do that it doesn't submit the Title to the list at all (assuming "Title" is not a required field). –  Alex Jan 11 '13 at 23:10
    
Another person wanted the same thing here: stackoverflow.com/questions/8164835/… But the "move" command is grayed out for me. –  Alex Jan 12 '13 at 1:45
add comment
up vote 0 down vote accepted

I found the answer. The solution is to use a XML secondary data source in the form. Steps to solve the problem, on a very high level (details will be different for every situation but this is the general workaround):

  1. Create an XML file that has the column structure for the column name that you want to be "global", i.e. the same for every repeated item.

  2. Create a secondary data source using that XML

  3. Create rules on both the main data source field that you need to act as "global" and on the secondary data source column. The main source field will write its value to the secondary source's xml column, and secondary source column will write its value back to the field.

  4. Success!

Credit to Hilary Stoupa's suggestion here

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.