Use the InfoPath Form Web Part to display an existing form (rather than a new one)

The InfoPath form web part can be used to populate the published InfoPath form (new instance). I want to use the web part to open an already completed form in order to make some changes. Can this be done (using this web part or any other solution)?

The reason for this requirement is that I want to have multiple web parts in my page, content editor, query string filter, and InfoPath web part. I want to use them to open a form (new or existing) in a specific mode / view.

Edit
I will try to simplify:
1- I have an InfoPath form that is saved in a SharePoint library. The form has several types.
2- Using a URL, for example http: //mySite/myPage.aspx? Form = myForm-20110613.xsn & view = View3 , I want to open the form myForm-20110613.xsn and switch to View3.

How can I achieve this (preferably without writing code)?

+4
source share
4 answers

I did this using a special page of the ASPX application. There is an Iframe on the page, which I set my src to the view URL as follows

private void SetIFrameSource_View(HtmlControl frame, string libraryName, string formName) { string formServerPage = "http://servername/_layouts/FormServer.aspx"; string xmlLocation = string.Format("/{0}/{1}", libraryName, formName); string source = "http://servername/SitePages/Home.aspx"; frame.Attributes["src"] = string.Format("{0}?XmlLocation={1}&Source={2}&DefaultItemOpen=1", formServerPage, xmlLocation, source); } 
+1
source

What version of InfoPath are you using? Since 2013, you can insert a rule in the form opening without any conditions and add the action β€œswitch views” to the view you prefer.

Click Data Download form new Add action Switch views (select view).

0
source

Create a page and add the InfoPath form web page and save the page. Do not configure properties for the web part (library name or content type). Go to the page, including the existing InfoPath XmlLocation form. eg. http: //siteurl/yourpage.aspx? XmlLocation = / sites / teamsites / TestFormLibrary / aaaaa.xml

https://devdotnotes.wordpress.com/2012/01/29/sharepoint-caculated-column-and-hyperlink-no-workflow-or-script-needed/

follow this link if you want to dynamically create this url in your view.

0
source

All Articles