Microsoft InfoPath 2010
The official blog of the Microsoft InfoPath team

Customize a SharePoint List Form using InfoPath 2010

Customize a SharePoint List Form using InfoPath 2010

Rate This
  • Comments 29

Today sees the launch of our new "5 for forms" video demo series. In this series, we will demo a cool new InfoPath 2010 feature or scenario in less than 5 minutes.

In the 1st video of the series, Daniel Broekman, a program manager on the InfoPath team will show you how you can customize a SharePoint list form with just a few clicks:

Get Microsoft Silverlight

We will post the next video in the series "Create tabs using Picture buttons"  after the holidays on January 7th.

Enjoy!

Leave a Comment
  • Please add 4 and 7 and type the answer here:
  • Post
  • Awesome feature and video!

    In fact we had this requirement in MOSS 2007 project and we ended up using Data Form Web Part.

    Here's the hard question. How can we make this deployable in different enviroment using WSP with features? I am guessing export this web part and stick it in ONET.

    This is what we currently did for one of the customer for MOSS 2007 by designing DFWP in SPD and then exporting DFWP and add it in ONET.xml. But the whole cycle of design-export-deploy is just painful when it comes to WSP.

    Prashant

  • Hi Prashant,

    All you need to do is save the list as a template. In SharePoint, go to the list settings and under Permissions and Management, select save list as template. This will create an stp file that is saved to the list template gallery.

    On your new site, click site settings and under Galleries, select List templates. Upload the stp. Now when you create a new list, you will be able to select the list template that you uploaded.

    Hope that helps!

    Laura Harrington (InfoPath team)

  • UPDATE:  After feedback about the quality of the embedded video, we've updated the post to replace the embedded video with a link to the high-resolution version on the Channel 9 site.  Look for a better-quality embedded experience after the start of the year!

    -Nick Dallett

    InfoPath Program Manager

  • This is a great feature. BUT, when you try it for a document library, the following error is thrown:

    'The SharePoint list form can't be customized with InfoPath because fields of an unsupported data type are marked as required, or because fields are corrupted. In SharePoint, try deleting the columns or editing the column properties to remove the required'

    Is this a known bug? It seems odd that you have the option to customise the form in the ribbon but cannot actually do so?

  • Office 2010 pricing and SKUs announced. I can't upgrade to InfoPath 2010 from 2007 without a volume license? Please put InfoPath in Professional or bring back Ultimate SKU.

  • Hello Daniel and Laura,

    Nice to see it's so easy to change SharePoint forms. I have a couple of questions though, based on feedback I got from clients.

    - You advised Prashant to use stp templates. However we always use site content types. So can we use this functionality when we deploy our sharepoint solutions?

    - Is it possible to customize the layout to remove the sharepoint list form chrome? We know still see the old chrome. We would like to to change the whole dialog with the custom one. Our clients who change the layout always want to update the whole experience, not some parts of it. I guess we should be able to add custom buttons.

    - You added some validation on the date field. Am I correct to assume this validation is only carried through this form? If I pick the datasheet view, I will still be able to change the form to a past date. I think it would be more logic to add such logic to the field setting.

    It's those kind of questions and requests that customers tend to ask. And they are, quite frankly, pretty important ones. They usually mean switching to technologies and techniques, other than InfoPath.

    I hope you guys keep these remarks under consideration.

    Tom Nys

    Technical SharePoint Consultant

  • Hi Josh,

    Thanks for your comment.

    We don't support customizing document library forms in InfoPath. This error should not appear in the final released product.

    Laura Harrington (InfoPath Team)

  • Hi Tom,

    Thanks for your feedback and questions. See answers below.

    - Can you provide more details on the scenario? Are you referring to an InfoPath site content type for a document library (not list)? If so, in order for this to work on another site, you would need to package the entire site as a WSP (as opposed to just an stp of the library).

    - It is possible to remove the toolbar \ ribbon by modifying the Form Web Parts on the list pages. Navigate to the list and on the List tab, in the Customize List group, select the Modify Form Web Parts option. Under Content Type forms, you will see 3 forms - New, Display and Edit. Each of these forms consist of an aspx page with an InfoPath Form Web part on it. If you select the New form, it will launch the page in edit mode. You can then modify the InfoPath Form Web Part properties and clear the "Show InfoPath ribbon or toolbar" in the Web Part tool pane. You can follow the same steps for the Edit and Display forms. Let me know if that does not answer your question

    - You are correct, the validation in the InfoPath form does not get carried over to datasheet view. You would have to implement separate validation in SharePoint for the datasheet view.

    Please let us know if you have additional feedback or questions.

    Thanks,

    Laura Harrington (InfoPath Team)

  • I post a couple questions here: http://social.msdn.microsoft.com/Forums/en/sharepoint2010general/thread/ef435c96-3c3a-4143-8132-bdae49a2b80c

    but perhaps you may be able to answer me.

    - What is the best way to switch to an editable form from the display form? I wasnt to go from the displayifs.apsx page to the editifs.aspx page from within the form if possible. I can use custom ribbon actions, but...

    - I am unable to get a ribbon to appear in the displayifs.aspx hosted views. My custom actions appear in the DispForm.aspx but not the InfoPath page of displayifs.aspx.

    - I cannot get a picture button (or any control for that matter) to react in the displayifs.aspx page unless I change ListFormMode from ReadOnly to Editable on the aspsx page, which I do not want to do. I have set the picture button to not be hidden in read only and it renders but does not respond to a click event, the other controls simply do not render.

    Is this Beta 2 functionality, or will it be consistent through RC and RTM?

    Thanks,

    Landon

  • Hi Landon,

    I've posted a response to your 1st question on the MSDN forum.

    Can you provide more details on the 2nd question above? What scenario are you trying to enable?

    We are aware of the issue with picture buttons in read-only views and are looking into it.

    Thanks,

    Laura Harrington

  • I get no sound on this video using IE 8.0.6001.18702 128 bit

    Details about the error

    Useragent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)

    Timestamp: Thu, 10 Jun 2010 19:36:57 UTC

    Text: An object is missing

    Line: 49

    Sign: 4

    Code: 0

    URI: blogs.msdn.com/.../customize-a-sharepoint-list-form-using-infopath-2010.aspx

  • The sound works when I play the video. What about when you play it directly from Channel9? channel9.msdn.com/.../InfoPath-2010-Customize-a-SharePoint-List-Form ?

  • Why Customizing forms are not supported on all the lists? As a consultant, it is really tough for us to remember which type of list supports custom forms. e.g. Custom Lists and Issue Tracking List supports the custom forms but External Lists doesn't support the custom Infopath forms? Is there any reason?

    Nik

  • This feature is supported for external lists. Please see this video: blogs.msdn.com/.../customize-an-external-list-form-in-infopath-2010.aspx

  • Sharepoint forms cannot be connected to Outlook 2010. When I try to Connect to Outlook, the outlook folder will just display .xml data and not a clear rendering of the form. Has anybody else encountered this error?

Page 1 of 2 (29 items) 12