.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Anonymous users submitting Infopath forms via InfoPath Form Web Part

Posted By:      Posted Date: September 03, 2010    Points: 0   Category :SharePoint
Is there a way for anonymous users in a public facing site to submit InfoPath List Forms via an InfoPath Form Web Part? Currently when I go to a page with the InfoPath Form web part configured as an anonymous users I get the following error message: Error loading the form A form template (.xsn) file cannot be accessed. You may not have the required permissions to open the file The list allows anonymous users permissions to add and view items When logged in the form works fine

View Complete Post

More Related Resource Links

Infopath form and forms library error

I've created an InfoPath 2010 form and associated it with a forms library on a SharePoint site. When I go to the library and choose "Add document" the form opens up to be filled out by the user. When the form is filled out, and the user tries to submit, they get an error saying that I need to configure SharePoint to allow cross-domain data access for user form templates that use connection settings in a data connection file and store a UDC file in the same site collection as the form. So I've enabled cross-domain data access and I've already created a Data Collection Library for Forms in the Site that is approved. What am I missing?  Why am I still getting the error?  

InfoPath form web part stops the close on submit

I have successfully published HTML browser enabled InfoPath 2010 forms to form libraries in SharePoint 2010. Users can navigate to the libraries and click new docuiment and fill out and submit forms, and the behavior of submit is as programmed in the form namely I have a concat rule for form name and chose action after submit to close the form with a success message. The problem I am seeing is a little abstract so stay with me while I explain. I'm hosting a number links to web part pages with the infopath web part on them. I use a links web part to aggrigate about 16 forms links on a single page. Users can successfully click on a link, are migrated to the web part page that has the form displayed in the infopath web part and all is well till they click the submit (on the ribbon, or custom button or whatever) The form does successfully get saved into the form library, but the form does not close. I need to make this process very simple for users without any training expended on the process. I'd like to shift focus to the previous web page, or close the form or something dramatic visually to show the user that they have completed the form fill out, and allow them to fill another form. Codebehind examples gratefully accepted! /Robin    

Infopath Form Data submitting to Sharepoint 2010 List

Making a Client intake form that once submitted will send data to  a sharepoint 2010 List called contacts. Short Summary the form will have repeating fields and alot of information to submit. I have looked and read all over but I cannot find an easy step by step guild on how to submit the form data like that. Long Summary on the sharepoint site a button will open a form for adding a new client.  once the form has been filled out and the user hits submit sharepoint will then create a User File, in clients file, and take the data and put it into contacts list. I am trying to make use of Sharepoint as I would with access, meaning the more information I have on a client the easier it will be to mail merge letters, motions, basicly any file prepaired stuff. So once I have css designed forsharepoint to make it look the way I want then the forms should intergrate perfect

InfoPath Form Forms Services and Identity?

We have an InfoPath form running under InfoPath forms services that opens a data connection to a SQL database to invoke a stored procedure using Integrated Security.  It connects as NT AUTHORITY\ANNONYMOUS  LOGIN and is denied access. The following query failed: CPI_RPI_Table (User: LITWARE\smith, Form Name: CPI-RPI-Index-Published, IP: , Request: https://www.litware.com/_layouts/Postback.FormServer.aspx, Form ID: urn:schemas-microsoft-com:office:infopath:CPI-RPI-Index-Published:-myXSD-2010-09-14T19-44-07, Type: DataAdapterException, Exception Message: The form cannot connect to the data source. Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.) When we run it in the InfoPath client, it connects with the users credentials. Can we have the form default to another identity, that of the SharePoint Service acount? Thanks, Nikos

URL of current form (InfoPath Forms Services)


I need to programmatically determine the URL of the current form, preferably without adding new dlls to the form template and increasing the trust level.

The XmlLocation query string parameter looks perfect for this, but when I try to retrieve it using 

String strSaveLocation = String.Empty;
e.InputParameters.TryGetValue("XmlLocation", out strSaveLocation)

it is empty.

In fact, outputting all the InputParameters shows that for my existing (i.e. already submitted and saved to a library) form, the XmlLocation parameter is not present (even though I see it in the querystring). Instead, there's SaveLocation (even though it's not in the querystring). The value of SaveLocation isn't dynamic - it points to the root folder even when my form is in a subfodler. I want a value that will work even if the form gets moved to a different subfolder.




Intigrate E-mail part with my infopath form

Hi I am using info path 2010 and I have the scenario that once a job seeker fill the form and submit to sharepoint document library after that when admin open it and check it he/she can directly send an Email from that I have the code but I want to use the templates so if you have any idea please help me 

How do I allow multiple users to desing the same InfoPath 2010 form? Preferably using SP 2010 to ho


We have several users who need permissions to edit a template and publish that template to the forms library.

The primary designer creates the template and uploads to a doc library.  Admin staff from all divisions need to be able to flesh out the template and publish for all users.

Intigrate E-mail part with my infopath form

Hi I am using info path 2010 and I have the scenario that once a job seeker fill the form and submit to sharepoint document library after that when admin open it and check it he/she can directly send an Email from that I have the code but I want to use the templates so if you have any idea please help me 

Submitting Infopath forms to a Sharepoint Library - how can I generate a unique name for each record


I have published an Infopath form to a Sharepoint Library. What is the best way to ensure the following:

1. have a name per saved form (I do have a name field which has a set certain amount of available names in it which I am currently using as the form name - coming from an XML file)
2. users can edit already submitted forms without changing the name of the saved form
3. Ensure that users who may create a new form which happens to have more or less the same data as a previously saved form don't end up overwriting the existing one and hence I end up loosing saved data?

Using the name field + allow overwrite will allow me to have a unique name for the form and allow it to be overwritten but if I create a new form with the same name and maybe just a few small differences I will overwrite the existing form which is what I don't want - someone may not realise that an existing form with the relevant information already exists and we could loose already saved information

Any advice would be greatly appreciated.


InfoPath form for 2010 workflow asTask Forms not showing up


Hello all,

The workflow deploys successfully, goes to first state as expected. When I click to change the task [using InfoPath task form], instead of showing the InfoPath form I see SharePoint 2010 edit form for the task list

Here are my files:


<?xml version="1.0" encoding="utf-8" ?>
<Feature xmlns="http://schemas.microsoft.com/sharepoint/ "
ReceiverAssembly="Microsoft.Office.Workflow.Feature, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c" ReceiverClass="Microsoft.Office.Workflow.Feature.WorkflowFeatureReceiver">
    <Property Key="GloballyAvailable" Value="true" />
    <Property Key="RegisterForms" Value="*Forms\*.xsn" />

Package.Template.xml :

<?xml version="1.0" encoding="utf-8"?>
<Solution xmlns="http://schemas.microsoft.com/sharepoint/">


<?xml version="1.0" encoding="utf-8" ?>
<Elements xmlns="http://schemas.microsoft.com

Infopath 2007 : can users anonymously save an uncompleted form they can later return to?


i am using infopath 2007 to create a survey that is web-enabled, and is stored in a Sharepoint Document Library. the survey is pretty lengthy and i would like to know if they can save what they've done to a certain point so they can return to it later?

the catch is that the survey should remain anonymous during that time (i know that i can have them save results in aforementioned document library, but then they can see other people's responses if they, too, save an uncompleted survey).

thank you.


SharePoint Designer workflow task - problem with multiple users selector in InfoPath form




I have got an issue with InfoPath form generated for my SharePoint Designer workflow task. There is a multiple users selector that requests users from a task assignee. The problem is that only the first user entered got saved.


I am using SharePoint 2010 Standard Server (release). Steps to reproduce are the following:

Error submitting InfoPath Web Form

I recieve a message "The form cannot be submitted because of an error" when submitting to a SP Doc Lib.  Design Checker doesn't register any errors.  I have checked the form and don't see anything that would cause the error.  I have also compared the DL columns with the form to ensure they match.  Not sure how to check on the server for this error....

New/Edit Default Form Link for InfoPath Created Forms


I've created 2 forms using InfoPath (Edit & New).  Both forms publish correctly, however I would like the "New" form to display by default when a user creates a New list item, and the "Edit" form to display (by default) when a user attempts to Edit an existing item.

Currently, Each form is available, but the New Form displays by default for either action.  The get the Edit form, the user has to select the the Edit form from the View dropdown box.  I'd really rather not have the dropdown box at all, and simply open the correct form per the action requested by the user.


The Web Part cannot find an InfoPath form in the specified location.



I had published an infopath form which is having managed code and i created a webpart page and used sharepoint 2010 infopath form webpart.

when i am logging in as administrator then i am able to browse the form(i can fill n submit), if i log on as any other user it is giving me the below message.

 The Web Part cannot find an InfoPath form in the specified location. Either the location does not have an InfoPath form associated with it or it is on a different site collection. Modify the Web Part Properties and select a list or library on the current site.

Open existing form with the InfoPath Form Web Part


Hello.  I have a custom .aspx page with a single InfoPath Form Web Part that is connected to a form library.  I can open up that form just fine and submit a new form to the library.  I can also open that existing form from the library.  However,  I want to provide the users a way to open existing forms using another custom page with the InfoPath Form Web Part.  

A little background... I build a custom web part that populates a sharepoint gridview (SPGridView) with the existing forms from the forms library.  I can pass in the name of the file which allows the form to be open using the InfoPath Web Form in a browser.  That works nicely, but the users would like to open up the form using the InfoPath Form Web Part also.  Is there a way to pass a parameter (e.g. file name) to a page that contains the IPFWP that will open the form in the web part?

<SharePoint:SPGridView ID="spGridView" runat="server" 

Can't relink infopath forms to a new template in the form library


I have an InfoPath form that has been working fine.  I made a change to the form, turned off printing and republished the form.  I then relinked all forms, or thought I did.  The new forms created work fine.  Most of the ones at the beginning are relinked and working fine.  There are about 228 forms in the middle that won't relink and you can't update them.  If I try to update the properties, it has an invalid link.  If I edit the form and submit it back with the changes, I get the following error message box, but only if I actualy make a change on the form and try to save it.


InfoPath cannot save the form
The specified location is not valid, not available, or you do not have the correct permissions
Check the spelling of the file name and verigy that the location is correct, or contact the server administrator.

Is there another way that I can force the relink?  There is also a field that does no populate in the properties.  It won't let me add that metadata.  I have a designer workflow that takes the ID created for a document/item and copies it to the field.  This is then used to create the unique name of the document.

Any help would be greatly appreciated.

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend