Posts

Showing posts with the label provisionning

SharePoint XSN provisionning with WSP

Image
it's not very simple to package a form xsn in the wsp solution, specialy if you want to do a provisionning.


You probably tried to use something like: 1<elements xmlns="http://schemas.microsoft.com/sharepoint/">
2<module name="DefaultForms" rootwebonly="FALSE" url="Lists/Forms">
3<file path="DefaultForms\TestForm.xsn" type="GhostableInLibrary" url="TestForm.xsn"/>
4</module>
5</elements>
But if you just put the XSN files in a module and deploy it to a Form-library like this, or just upload the xsn file to the library, the Info Path form will not be able to render (error: form is not browser enabled).
What you have to do to fix this is adding some extra properties:  1<elements xmlns="http://schemas.microsoft.com/sharepoint/">
 2<module 
 3name="DefaultFormulieren"
 4       rootwebonly="FALSE"
 5       url="Lists/Forms">