InfoPath forms within SharePoint pages


One of the great things about InfoPath 2007 is that it allows people to design forms that can be opened in an internet browser. This means, if you have a SharePoint intranet, extranet or website, you can publish InfoPath forms to SharePoint and have people open up the forms even if they don’t have InfoPath installed on their computer.


This is good. What would be better would be being able to display a form within a SharePoint page, but it’s not always clear how to go about doing this. There is a very simple way to include an InfoPath form as a part of a SharePoint page and, by the end of this post, you should know it.


The first thing you need to do is make your form available for use. You can do this by going through the publishing wizard and choosing to upload the form as Site Content Type. You’d better also make sure that you’ve enabled the form to be filled out using a web browser. By default, forms created in InfoPath will be set to open up only in InfoPath, so you need to make sure you’ve got the compatibility correct.

Photobucket

 


Finish going through the rest of the steps of the wizard, putting in the details of the SharePoint site you want to use the form on, and click publish. This will put your form template onto SharePoint so that people can use it.


Once the form is published, the wizard will give you a final screen, which includes a link labelled “Open this form in the browser.” Click this link.


As you might expect, this will open up your web browser of choice and display your newly published form as a webpage. Copy the URL of this page.


Now open up the SharePoint page you want to display the form in. Edit this page as you would any other and choose to add a webpart in the appropriate place. This will open up a dialogue offering you a list of available webparts. Ignore the one that calls itself Form Web Part and instead select the one called Page View Web Part.


Photobucket


When you’ve added this part, you’ll get a little message saying to open the tool pane to add content. So open the tool pane and you will see a text box labelled link.

Photobucket

In this text box, enter the URL of your form.


You’ll probably need to adjust the height and width of the webpart using the appearance options to get the form displaying correctly. But, when you click OK, you’ll have your form displayed as a part of the webpage.


I said it was simple.


When you publish an InfoPath form as Site Content Type, it is displayed as a webpage and the Page Viewer webpart allows you to display a webpage within a SharePoint page.


 

Comments (7)

  1. Anonymous says:

    Thanks for posting this.  I knew there was a simple way to embed the InfoPath forms in SP web pages and this certainly is the most simple method I’ve found so far.  But, when I added the form to the web page, the Save button (that’s normally there when you publish a form to a library) is gone.  How is a user supposed to submit a form without the save?  Do I have to put a custom submit button that saves to a doc lib if I embed the form in a web page?  Have I forgotten to enable some option on the form before I published?  

  2. altaf says:

    Hello, I need to publish my infopath form to a custom list, and when I click into a NEW ITEM button, my infopath form should be launched. But I can't do this. I can just publish my infopath form into document library and form library. How can I do this?

  3. altaf.ms@hotmail.com says:

    Hello, I need to publish my infopath form to a custom list, and when I click into a NEW ITEM button, my infopath form should be launched. But I can't do this. I can just publish my infopath form into document library and form library. How can I do this?

  4. Dan says:

    I’m unable to load the sample infopath forms from one of your books: "This orm cannot be opened because it requires the domain permission … Published location file:///c:UserjessimeaDocuments…."
    How do I fix this?

  5. rwewer says:

    https://www.facebook.com/WatchTheGallowsOnline
    http://www.screencast.com/t/quSMVzunkfta
    https://www.facebook.com/WatchKitchenSinkOnline
    https://www.facebook.com/WatchEverestOnline
    https://www.linkedin.com/grp/post/6981021-6017300035971067904
    https://www.rebelmouse.com/watchgoosebumpsonline/
    https://www.facebook.com/WatchTheVisitOnline
    http://www.screencast.com/t/VpGExbbJn3
    https://www.rebelmouse.com/WatchTerminatorGenisysOnline/
    https://www.facebook.com/WatchBeforeIWakeOnline
    https://www.linkedin.com/grp/post/6986867-6032763130319224832
    http://www.screencast.com/t/yjTUkGmW8
    https://www.linkedin.com/grp/post/6973703-6017389460872769538
    http://www.screencast.com/t/7HJHoJAX3Zdh
    https://www.linkedin.com/grp/post/6981021-6017297880677638145
    https://www.linkedin.com/grp/post/6981021-6017293164958732291
    https://www.rebelmouse.com/watchpanonline/
    https://www.rebelmouse.com/WatchMinionsOnline/
    https://www.facebook.com/WatchSelflessOnlineNow
    https://www.linkedin.com/grp/post/8338032-6017239480027664385
    https://www.linkedin.com/grp/post/6981021-6017330014037491716
    https://www.linkedin.com/grp/post/6986867-6032609541969952770
    https://www.facebook.com/WatchTerminatorGenisysOnline
    https://www.linkedin.com/grp/post/8338032-6017245551668580353
    https://www.rebelmouse.com/watchbridgeofspiesonline/
    https://www.facebook.com/WatchRocktheKasbahOnline
    https://www.facebook.com/WatchRegressionOnline
    https://www.rebelmouse.com/WatchSelflessOnline/
    http://www.screencast.com/t/S2I3Wrr82Vi
    https://www.facebook.com/WatchMastermindsOnline
    https://www.rebelmouse.com/WatchAmericanUltraOnline/
    https://www.facebook.com/WatchSinister2Online
    https://www.rebelmouse.com/WatchTransporterRefueledOnline/
    http://www.screencast.com/t/TvPbbdNAoo
    https://www.rebelmouse.com/watchthemartianonline/
    https://www.facebook.com/WatchHotelTransylvania2OnlineNow
    https://www.facebook.com/WatchTheTransporterRefueledOnline
    https://www.rebelmouse.com/watchbeforeiwakeonline/
    https://www.linkedin.com/grp/post/8338032-6017252274668138499
    http://www.screencast.com/t/Bq3Crb0cMJXo
    https://www.rebelmouse.com/WatchSinister2Online/
    https://www.rebelmouse.com/MazeRunner2TheScorchTrials/
    https://www.linkedin.com/grp/post/6975089-6015036398715822084
    http://www.screencast.com/t/UtQ9csdg
    https://www.facebook.com/WatchMagicMikeXXLOnline
    http://www.screencast.com/t/9qQuJQqKp
    https://www.rebelmouse.com/WatchTheGallowsOnline/
    http://www.screencast.com/t/1tmJpsMuw
    https://www.facebook.com/WatchRickiAndTheFlashOnline
    https://www.linkedin.com/grp/post/6973703-6017391677738598404

  6. cbzcvae says:

    http://spielehack.net/clash-of-clans-hack-clash-of-clans-cheat/
    Letzte Woche kündigte Supercell, es ihnen ein paar Wochen werde bis sie den nächsten Updates zu "Clash of Clans" Ausrollen können, aber sie weitere Informationen veröffentlichen werden, sobald sie das richtige Material haben.