InfoPath

InfoPath – Multiple attachments in one web based form

Attachments in InfoPath are great.  The only issue with this, is that you can only attach one file to your form at a time.  In order to get a around this, you will need to add a handy dandy repeating section.  I have also added a count box to show how many attachments have been added to your form.  You also will have the ability to hide all of your attachments.  That’s where the count comes in handy.

I like to use this hide function for my attachments especially when I have a form that goes through an approval process.  I have attached a starter form using these controls.  The ‘attCount’ field has a default value set to count how many controls have been added to your form.  There is one rule set for the repeating section to hide it the ‘hideAttachments’ is set to ‘TRUE’.

I saved the form in a 2007 web based format.  You should be able to open in all versions of InfoPath 2007 – 2013.

Download Multiple Attachments Form

Stay Salty!

11 thoughts on “InfoPath – Multiple attachments in one web based form

  1. Is this site still active? I have a question. I am trying to add multiple attachments to a 2013 SP InfoPath form. On my one computer (which is still SP 2007), it works fine. But when I moved the form to my 2013 computer, I can only add one attachment. Is there something I need to have on my 2013 computer in order to add multiple attachments?

  2. Not that I am aware of. To add to the mystery, multiple attachments work on all my other views in 2013 except the default view.

  3. Currently for the default view, in the repeating table properties, I deselected the Insert Item and just made a note on the InfoPath form for the user to use Ctrl+Enter to insert a new row. But the over views all have Insert Item. Weird huh?

  4. Thank you for sharing. I am a newbie to Infopath and Sharepoint and I love it that you are able to share like this. Love your links as well.

  5. I have a SP library that is built through a InfoPath form. Where will the attachments “live”??

  6. Traditionally, all attachments are stored within the xml of the InfoPath file itself. With a little effort, you can extract the attachment(s) and store them in a separate library if needed. Please note that when browsing through the library, you will not notice that there are attachments without opening each item. What I’ve done in the past is create a “helper” field named “Contains Attachment” with basically shows that an attachment exists. For example, I added a field to the attachments button and sets a value of the helper field to something like “yes” so in my view I can see an attachment exists or not.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.