{"id":203,"date":"2010-08-16T11:49:33","date_gmt":"2010-08-16T09:49:33","guid":{"rendered":"http:\/\/jsiegmund.wordpress.com\/?p=203"},"modified":"2013-04-18T18:42:28","modified_gmt":"2013-04-18T17:42:28","slug":"providing-infopath-form-views-for-new-edit-display","status":"publish","type":"post","link":"http:\/\/blog.repsaj.nl\/index.php\/2010\/08\/providing-infopath-form-views-for-new-edit-display\/","title":{"rendered":"Providing InfoPath form views for new \/ edit \/ display"},"content":{"rendered":"<p>I never really looked into InfoPath untill SharePoint 2010 arrived. With 2010, customizing your item forms becomes a lot easier to do in combination with InfoPath. Yes, most of this was also possible with 2007, but the way to get there was a bit more complicated.<\/p>\n<p>Here&#8217;s some steps you can take if you want to provide three different InfoPath forms for adding \/ editing and displaying your list item:<!--more--><\/p>\n<p>1. First, you open up your list in a browser window<br \/>\n2. Choose the List ribbon item to view the List ribbon buttons.<br \/>\n3. Select the InfoPath button, now InfoPath (which you would have to have installed of course) will open up with a default representation of the form.<br \/>\n4. Edit the form the way you want it to.<br \/>\n5. Press the little &#8220;quick publish&#8221; button in the quick ribbon, this will publish your form.<\/p>\n<p>Now you&#8217;ll notice that your form becomes the default form for all actions. If you want to provide different forms for the actions, you&#8217;ll need SharePoint Designer:<\/p>\n<p>1. Provide three different views in InfoPath, you can do this by selecting the Page Design ribbon tab and creating two extra forms. Make sure you don&#8217;t select the option to show the form in the dropdown menu, otherwise people can choose this form on their own (which is probably not what you want)<br \/>\n2. Publish your InfoPath form again to get the forms into SharePoint<br \/>\n3. Now open up your list in SharePoint designer. You&#8217;ll notice there&#8217;s an extra folder called &#8216;Item&#8217; (or your content type name). This folder contains three pages: displayifs.aspx, editifs.aspx and newifs.aspx.<br \/>\n4. Open up on of the pages and select the webpart (BrowserFormWebPart) on it.<br \/>\n5. In the Tag Properties window, scroll down to &#8216;Default View&#8217;.<br \/>\n6. Type the name of the view you want to use<br \/>\n7. Save the page<\/p>\n<p>That&#8217;s it; now that particular page will use the InfoPath view you specified. This way you can easily provide forms which have different options for inserting \/ editing and perhaps a completely different lay-out for display purposes. Cool!<\/p>\n<p>Special thanks to Clayton Cobb for providing this solution at <a href=\"http:\/\/social.technet.microsoft.com\/Forums\/en-US\/sharepoint2010customization\/thread\/3de0f6bb-31ea-4cb5-b9c5-a796c9cbaea7\">MSDN<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I never really looked into InfoPath untill SharePoint 2010 arrived. With 2010, customizing your item forms becomes a lot easier to do in combination with InfoPath. Yes, most of this was also possible with 2007, but the way to get there was a bit more complicated. Here&#8217;s some steps you can take if you want<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[34],"tags":[20,7],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p3KFR1-3h","_links":{"self":[{"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/posts\/203"}],"collection":[{"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/comments?post=203"}],"version-history":[{"count":0,"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/posts\/203\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/media?parent=203"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/categories?post=203"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/tags?post=203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}