Modify displayifs.aspx in InfoPath Designer

Hi,

If I modify list form using InfoPath designer....I cannot specify a form (display form, edit form and new form). But, I can find out editifs.aspx, newifs.aspx and displayifs.aspx in SharePoint Designer. So, is it possible to modify particular form (e.g. display form) using InfoPath Designer? 

 


  • Edited by spman7 Sunday, January 01, 2012 5:00 AM
January 1st, 2012 4:40am

It's all the same form template.  Those are just separate pages with InfoPath form web parts showing the same form template.
Free Windows Admin Tool Kit Click here and download it now
January 1st, 2012 5:51pm

Hi spman7,

If you want to use InfoPath form as display form but original form for new and edit form, please open the list in SharePoint Designer, create a new new form and edit form by following steps, and set them as default form.

Click New button on the top right corner of Forms Section in edit list page in SharePoint Desinger > Select New item form/Edit Item form > Select "Set as default form for the selected type" > OK

Best regards,
Emir

January 2nd, 2012 9:17am

I do not believe that Emir's above answer (which he marked himself as the answer) actually addresses this, becasue the question was asking about how to ALSO modify the display and other forms in InfoPath. Not simply default it back to the original aspx way.  Here is how you actually do what the OP is asking:

It is true that there is only one InfoPath template, but there are three pages.

  • displayifs.aspx (for Display)
  • editifs.aspx (for Edit)
  • newifs.aspx (for New items)

You can create multiple "views" of the primary data source in the InfoPath form using the InfoPath Designer. You can add a view on the Page Design tab and click on the 'New View' button. You can even copy the fields from the other view by selecting them all, pasting them, and then modifying the ones you want.

<WpNs0:BrowserFormWebPart 
		  runat="server" 
		  DefaultView="ViewOnly" 
		  AllowEdit="True" 
		  AllowConnect="True" 
		  SubmitBehavior="FormDefault" 
		  ConnectionID="00000000-0000-0000-0000-000000000000" ... >

In the either *ifs.aspx page you can see in SPD there is a "BrowserFormWebPart". One of the attributes you can specify on this element is DefaultView. When you look at the automatically generated pages, it's not specified at all, and thus defaults to the template's default view out of the box, but you can add it and set which one is displayed.  In this example it's going to show the View, as defined in the InfoPath template, named ViewOnly.

You can edit all three of the *ifs.aspx pages to have them each show a different view. Note that there is another attribute called ListFormMode that can either be ReadOnly or Editable. When it's ReadOnly it forces the controls into a gritty 'flat' mode, so if you don't like that you can replace the controls with calculated fields bound to field values on your view only view instead of databound controls.

  • Proposed as answer by dolan.dave Thursday, May 10, 2012 2:29 PM
  • Edited by dolan.dave Thursday, May 10, 2012 4:17 PM clarification
Free Windows Admin Tool Kit Click here and download it now
May 10th, 2012 2:16pm

@dolan.dave, MSDN is filled with spammers like Emir. They swoop in and give the most rudimentary answers, answers that aren't answers, answers that are two or three lines or a link's worth of information that anyone including the original poster already knows, answers that go nowhere and ignore every nuance of the original question. I hate them so much. It's so worthless to see question after question with these stupid answers that read like manual excerpts, like I can't just go look at a manual or some easily available documentation for that kind of thing. Your answer is much better, and starts to really get to the meat of the question. Thank you.

April 9th, 2015 7:01pm

How do you go about renaming each *ifs.aspx page and have it not create a new set of 3 *ifs.aspx Infopath forms each time you edit them?

Free Windows Admin Tool Kit Click here and download it now
July 24th, 2015 2:25pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics