คำตอบ Anonymous Access with Infopath form

  • Monday, April 16, 2012 8:10 AM
     
     

    I am facing issue while accessing infopath anonymously. Below mentioned are the steps I followed.

           

    From infpath I selected Sharepoint List template

    -          I created a basic infopath form, no external data connection.

    -          Published the form which results in creation of a List in targeted site.

    -          Site is anonymous and I also have assigned anonymous permissions to the List itself.

    -          I added infopath form webpart on page. In webpart propertise I selected the List from the dropdown. Then I selected “NewForm” view from properties.

    -          When I open the form it gives form is closed.

    -          If access the site after login with a Visitor account (Readonly permission) it works fine. But not for anonymous.

    Below mentioned are the errors w.r.t correlation id from logs.

    Unknown SPRequest error occurred. More information

    --->>

    The XSN is null and its not a cross server issue. Most likely a permission issue 

    ---->

    Leaving Monitored Scope (EnsureListItemsData). Execution Time=9.71365880416895

    "04



    • Edited by smmuneeb Monday, April 16, 2012 8:11 AM
    •  

All Replies

  • Monday, April 16, 2012 10:18 AM
     
     Answered

    Submitting an InfoPath form requires adding a new XML document to a library.  SharePoint prohibits the addition of documents to libraries by anonymous users.  So anonymous users cannot submit Infopath forms to a SharePoint site.  Take a look at the following article:

    http://claytoncobb.wordpress.com/2011/06/03/infopath-allowing-anonymous-users-to-submit-forms-in-sharepoint-2010/


    Paul Stork SharePoint Server
    MVP Chief SharePoint Architect: Sharesquared
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • Monday, April 16, 2012 10:29 AM
     
     

    It is not a form library or document library. It is just a list. This list is created by designing Infopath form "Sharepoint List Template"as I mentioned in my 2 steps.

    It is not submission of form but submision of Data to a list. 

  • Monday, April 16, 2012 11:29 AM
     
     
    Take a look at the article I mentioned.  It covers using Infopath forms for list forms as well.  Based on the way Infopath works its still the same problem even though its a list.

    Paul Stork SharePoint Server
    MVP Chief SharePoint Architect: Sharesquared
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.