Thursday, March 21, 2013

Displaying different Infopathforms in list

For some situations we might want to show a list, like when we’re creating an Item. While other situations we need to see a more clean view, like for printing and such.

Enter Infopath views! under Page Design > View , we can create a totally different form, but based on the same listitem. image

There’s already an Printview inplace but we can create a new one for viewing.

Now, we’ve create a new view and we want this to be the default one when clicking View Item in a list.

  1. Under List>Customize List>Form Web Parts v>[ContentType Forms] (Item) Display Formimage
  2. Edit Infopath form Web part, change Views to your preferred view, like Printview

 

 

Its also possible to create a button in a form and switch views by clicking farily easy.

  1. Create button
  2. Control Tool>Properties>Add Rule>When this button is clicked>Switch Views

image

Preferences:

https://www.nothingbutsharepoint.com/sites/eusp/Pages/How-to-Design-Different-Display-for-View-Edit-List-Item.aspx

http://office.microsoft.com/en-us/infopath-help/add-delete-and-switch-views-pages-in-a-form-HA101732801.aspx

http://blogs.msdn.com/b/prasad_madhavan/archive/2011/05/04/customizing-sharepoint-list-new-edit-display-forms-individually-in-infopath-2010.aspx

http://sharepoint.stackexchange.com/questions/43788/using-default-list-forms-for-edit-view

No comments: