Create a folder in a SharePoint document library via an InfoPath form (no code)
Watch a demonstration of how you can use an InfoPath 2010 browser form to create a new folder in a SharePoint document library without having to write code.
The InfoPath 2010 with SharePoint 2010 video below is a demonstration of how you can use an InfoPath 2010 form to create a new folder in an existing SharePoint document library on a particular SharePoint site. The steps for creating such a solution have been laid out in a bonus article for InfoPath 2010 Cookbook 2 named Add a new folder to a SharePoint document library through an InfoPath form that can be found in the InfoPath 2010 Cookbook 2 Club.
InfoPath 2010 with SharePoint 2010 demo video transcript
Here I'm in SharePoint 2010 where I've got this MyDocLib and MyDocLib2 document libraries. As you can see, MyDocLib is currently completely empty. And so is MyDocLib2.
I've already published an InfoPath form template to this SharePoint form library, so if I click Add document to add a new form... and first I'll enter a name of a document library that does not exist, for instance MyDoc Lib with a space in between, and then I'll click away.
And as you can see, this field is currently checking whether the name that you have entered into the field exists as a document library on the current site. And in this case, MyDoc Lib with a space in between it, does not exist, so I'll remove this space, and then I'll click away. And you can see that the validation error will disappear.
And then here I'll just enter the name of the new folder I want to create. I'll say I'll call it Folder 1. And I'll hit the Create New Folder button, and then I'll close the form, and navigate back to the MyDocLib document library. And as you can see, the Folder 1 has been created in the MyDocLib document library.
I can repeat the process for the second document library, so I'll just enter MyDocLib2 here. And this time I'll call the folder Folder22. And then hit the Create New Folder button, close the form, navigate to the MyDocLib document library, and as you can see, Folder22 has been created.
See more InfoPath 2010 tutorial videos »
Copyright: This article may not be used on web sites (whether personal or otherwise), copied, disseminated, altered, printed, published, broadcasted, or reproduced in any way without an expressed written consent of S.Y.M. Wong-A-Ton. The techniques demonstrated in this article may be used within any Microsoft InfoPath project. This article is provided without any warranties. Copyright for this article is non-transferrable and remains with the author, S.Y.M. Wong-A-Ton.
Related InfoPath Articles:
- SharePoint list CRUD operations using an InfoPath repeating table
- Bulk delete SharePoint list items via an InfoPath 2010 form
- Submit InfoPath forms to a SharePoint document library
- Create a SharePoint Designer workflow for InfoPath forms
- SharePoint Designer 2013 workflow to loop through InfoPath repeating table and create list items