SharePoint Blogs / SharePoint University
SharePoint Blogs and SharePoint University - all in one place!
Need SharePoint Training? Attend a SharePoint Bootcamp!

Please delete cookies related to sharepointblogs.com and sharepointu.com to resolve login issues!

Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007

Hello,

I have been demonstrating the power of SharePoint 2007 and the ability to create user friendly forms using InfoPath 2007 for a client here in NYC. Most of the areas within the institution have been extremely excited with my presentation. However, I encountered one area that asked "Can users submit these forms anonymously?” At that point, I tried to go through the steps of activating anonymous access in central administration and in IIS which worked. Upon clicking the submit button I received a "Critical Error has occurred while processing this form" error. Similar to that of the user in the post linked below:

http://www.eggheadcafe.com/software/aspnet/27756887/enabling-anonymous-users.aspx

I later spent hours reviewing the logic of the setanon.aspx and failed attempts to remove the lines of code that trigger the "gray-out" of the add, edit and delete boxes it became apparent that SharePoint is dynamically determining whether or not to allow this particular functionality. I used the steps below to get this functionality implemented.

Steps to allow anonymous access for users to submit InfoPath web-enabled forms:
1) Login to Central Administration on your SharePoint 2007 installation
2) Select Application Management
3) Select authentication providers
4) Select the zone that you would like to activate anonymous access
5) Select the checkbox under the anonymous access to enable it and click "Save"

For detailed information on the above steps you may view the link below which goes to Bil Simser's blog:
http://weblogs.asp.net/bsimser/archive/2006/09/25/Enabling-anonymous-access-in-SharePoint-2007.aspx

Steps to allow anonymous access for users to submit InfoPath web-enabled forms: (Continued).....

*Assuming that you have already created your test form and a corresponding Form library in SharePoint 2007 the steps below will allow you to complete this process.

6) Browse to the document library which is hosting or will host your InfoPath form submissions
7) Click the settings, action menu
8) Click "Form Library Settings"
9) Under the "Permissions and Management" section, select "Permissions for this form library"
10) Click the Settings, action menu once again...
11) Select the "Anonymous Access" link - This will only be visible if you have performed the steps listed in part1.
12) By default in a form library the "Add Items, Edit Items & Delete Items" options will be "grayed out" and the "View Items" option will be preselected.

Now onto the interesting part......
13) Take a look at the URL of this page you will notice that after the setanon.aspx page there is a query "obj=%listidhere....." followed by "DOCLIB" surprise
14) If you change this last part of the URL from "DOCLIB" to "LIST", you will notice that you now have all of the option that you've been missing.

Note: By changing the URL query in your browser using the steps in step 14 you are not damaging your library in any way. You are just telling SharePoint to present you with the anonymous access settings available for a list. You can change the setting back to the default by deselecting the "Add, Edit & Delete" options using step 14 as a guide.

I understand that the MS Product team intended to help secure the product by restricting anonymous users from having edit access to libraries but one good use case for Forms Services / Form Server would be the ability of an organization to collect data from outside sources and manipulate the inputs via workflow or preset triggers.

Some people may take this a step further and say that users may be able to view form submissions which have not been created by them because all anonymous users are authenticated using the same account as far as SharePoint is concerned. One solution that I used for this was to use enable “Audience targeting”. I created a SharePoint site group for the individuals who will be reviewing the forms and targeting my submissions using a hidden field in my InfoPath form that would basically hide the form data from a anonymous user.

I am interested in hearing any feedback from the community on this post. I have searched online and have not been able to find any solution based documentation on this topic. So i figured it may be helpful to post what was very helpful for me and allowed me to have a happy client. smile

Hope this helps someone out there!

 

 


Posted 10-13-2006 2:32 AM by egayle

Comments

sharesql wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 07-31-2007 9:48 AM

I have been having this issue for along time. I tried you solution however anonymous user still cannot submit an Infopath form. When looked into it, users were receiving an error stating that they do not  have permission to to submit the form to that specific location. Are their changes that need to be made in IIS, is there something else that needs to be done? I followed all your steps and I still get an error when trying to submit. Please assist with this matter.

Thanks

jprovine wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 08-02-2007 2:23 PM

I am having the same issue with as "sharesql", the more research i do it seems like alot of people are having this issue.  Even after giving them full control, which now allows them to open the form and fill it out, you get an "unexpected error has occured"  which i have traced down to that it wont let me submit.

after you complete your steps i also have found that, if you go back to the home and then re-browse to it, it will clear out your settings and give them view only.

If you know of a solution that would be great!

TParker.net » Post Topic » The Truth Behind Anonymous Access in SharePoint 2007 wrote TParker.net » Post Topic » The Truth Behind Anonymous Access in SharePoint 2007
on 08-26-2007 7:29 PM

Pingback from  TParker.net  » Post Topic   » The Truth Behind Anonymous Access in SharePoint 2007

Ghassan IRQ wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 08-27-2007 1:57 PM

Dear All

The only way I found to make it accessible by anonymous is to publish the form to a new Document Library not Content type!! Then you will end with a very long url which you can use it in any page as a hyperlink but one of the disadvantages is you can not add it to the navigation structure from the site action because it dose not handle long urls

ugrin wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 08-28-2007 2:21 AM

Hi everybody,

I am having troubles enabling anonymous users to submit infopath forms to a forms library. I followed the steps that Ervin describes in the article and I still get the same error... I can open the form and fill it out but when I click submit it says Critical error occured and asks me if I want to continue or to start over again. I looked at sharepoint logs and I found out that forms server says it has an access denied error. It can see the stuff I wrote in the form and can read it but cannot submit it because the username field is empty. Now I dont have an user name field in my form so I think that Forms server has some fields that have to be filled before you submit the form. Has anyone found a solution to the problem? How about impersonation? Can it be achieved at this level?

Best Regards

Ugrin Babunski

Kent D wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 09-07-2007 3:54 PM

I could not get this to work. Even with the DOCID-to-LIST hack, my form is still unable to "create" in the document library.

I don't believe it's the job of the MS Product Team to disable the ability to allow for anonymous users to do anything but View. Let us dumb users screw up things if we'd like and throw alerts at us telling us what we're doing wrong.

jlbg wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 09-12-2007 11:42 AM

I've worked on this for a while, and spoke with a few microsoft tech support people (premier support, not the phone support).

They said it is not something you can do. We ended up having to build a custom web service that impersonates to save the document. Infopath submits it's data to the web service.

So far everything seems to work pretty well.

The MSFT person that told me this was also the same guy that was providing Hotfixes for the long list of bugs in the publishing features.

You could also try using email enabled lists, but I was never able to get that to work. Sharepoint was ignoring any emails that didn't come from outlook(gmail, sharepoint alerts, infopath emails don't work).

Sorry. Infopath web enabled forms seem great, but it still needs some work.

Norris wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 09-12-2007 12:03 PM

Thanks Ervin,

Your solution worked for me just fine after following your steps.

I agree that MS needs fix this issue.

I really appreciate you posting this.

Norris wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 09-14-2007 1:26 PM

False alarm. Apparently, I had another window opened where I was authenicated to the site.

Which brings up a question. Anyone know why anonymous access to web-based Infopath forms only works when a user is already authenicated to the site?  

RossOnMoss wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 03-05-2008 10:00 AM

Did anyone ever get this working?  I followed the steps above but I've never been able to submit without error.  

-jr

suraj wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 06-29-2008 9:15 PM
Matt wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 07-21-2008 5:48 PM

Thanks Man.  Been a bit frazzled by this for a couple of days now.  Thought it had something to do with the Parent site not allowing site's beneath it the options that are greyed out.  Good to know that it wasnt me doing something wrong for a change.

Ruth wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 08-20-2008 11:01 PM

Hi,

I have a Infopath form with approve / reject option buttons and a submit button.

It is browser enabled.   We need to get approvals for individual users.   They can be using gmail, hotmail or other email applications to submit approval or rejection.

The form works fine in outlook.   But in Gmail or hotmail, the submit button is not seen, but I can see the option button.     My system has infopath and when I publish I choose email option.   Once I send I receive emails to my outlook and then I can choose approve or reject, it works perfectly well.   But in gmail no submit button?   Any solution?    Thanks..  

peter hill wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 08-22-2008 10:03 PM

Download 7 penis enlargement videos. User ratings & reviews of 55 penis enlargement pills.

kral oyun wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 10-24-2008 8:05 AM

Download 7 penis enlargement videos. User ratings thank you

Shon wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 12-11-2008 1:57 PM

This does not work.  I don't see one post from anyone confirming this works, have YOU actually confirmed this.

Miky Rivers wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 12-12-2008 2:58 AM

The problem with this is that anonymous access to document libraries is limited to just view the items, so an anonymous user can't create new forms in this library.

The anonymous users can only create content on Lists, but never in libraries, and the forms are documents so have to be stored in libraries.

The only way to get around this problem is to create a web service that publish the form in the library for us and to configure the form to send the data to this web service.

I can't understand how MS didn't include this feature in MOSS .... :(

*** Enlargement wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 12-23-2008 8:00 PM

We Review the Top *** Enhancing Pills & tell you what really works.

Tim Mills wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 12-27-2008 10:53 AM

I didn't have much luck with your solution, some work arounds include a web service but you should check out my blog, I have found a way to easily submit a form with just a few lines of code.

tim-sharepoint.blogspot.com/.../sharepoint-anonymous-infopath-forms.html

web services wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 12-30-2008 11:15 PM

Even after giving them full control, which now allows them to open the form and fill it out, you get an "unexpected error has occured", It Can sharepoint search API search across multiple site collection.

www.torontowebservices.com

Rob Garrett wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 01-14-2009 10:16 PM

I read this post a while back – it’s only half of the story.  If the InfoPath form does not submit data to a SharePoint list then the details in this post work fine.  If the InfoPath form is geared to post data to a list (not the forms library) then the submission will fail.  This is due to the way SharePoint posts data to lists from InfoPath using event receiver logic.  Event receivers do not work if the user is not authenticated – Microsoft is aware of this issue and I hoping they fix it in a subsequent release.

The details in this post only go half way in setting up the form library for anonymous access (so the InfoPath host server can access the XSN file as anonymous).  One way to get around submission to a SharePoint list is to post to a web service, which then elevates to an authenticated user with list write access permissions.  See my post robgarrett.com/.../sharepoint-infopath-submission-as-anonymous-user.aspx

Submitting InfoPath Forms Anonymously « All the Goss about MOSS wrote Submitting InfoPath Forms Anonymously « All the Goss about MOSS
on 01-18-2009 12:06 AM

Pingback from  Submitting InfoPath Forms Anonymously « All the Goss about MOSS

Anonymous form submission MOSS2007/InfoPath2007 | keyongtech wrote Anonymous form submission MOSS2007/InfoPath2007 | keyongtech
on 01-21-2009 8:40 PM

Pingback from  Anonymous form submission MOSS2007/InfoPath2007 | keyongtech

Neglia wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 03-10-2009 11:54 AM

This just not works!

Please delete or correct your Post

Yaniv Lowenstein wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 03-30-2009 8:00 AM

It works fine.  I changed the DOCLIB to LIST , then add the add item previliege and the anonymous user was able to submit a form to the form library.

Thank you very much.

Mina wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 04-22-2009 1:53 PM

i did what you said, changed doclib to list and then submit the form, but it still gives an error saying it cannot access the library.

any help?

Pharme123 wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 04-28-2009 3:01 PM

Very nice site! <a href="yieapxo.com/.../1.html">cheap viagra</a>

Pharmf504 wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 04-28-2009 3:01 PM

Very nice site!  [url=yieapxo.com/.../2.html]cheap cialis[/url]

Pharmf144 wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 04-28-2009 3:01 PM

Very nice site! cheap cialis yieapxo.com/.../4.html

Pharmc26 wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 04-28-2009 3:02 PM

Very nice site!

Pharmd486 wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 04-28-2009 3:03 PM

Very nice site! <a href="yieapxo.com/.../1.html">cheap viagra</a>

Pharmc675 wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 04-28-2009 3:04 PM

Very nice site!  [url=yieapxo.com/.../2.html]cheap cialis[/url]

Pharme535 wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 04-28-2009 3:04 PM

Very nice site! cheap cialis yieapxo.com/.../4.html

Pharmd306 wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 04-28-2009 3:04 PM

Very nice site!

bela wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 05-01-2009 6:01 AM

anyone thought about just creating a survey? They can be anonymous.

Marco wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 05-04-2009 8:41 PM

Very nice site

Pharmc727 wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 05-27-2009 7:03 AM

Very nice site! <a href="opxaiey.com/.../1.html">cheap viagra</a>

Pharmk180 wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 05-27-2009 7:03 AM

Very nice site!  [url=opxaiey.com/.../2.html]cheap cialis[/url]

Pharme281 wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 05-27-2009 7:03 AM

Very nice site! cheap cialis opxaiey.com/.../4.html

Pharmf674 wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 05-27-2009 7:04 AM

Very nice site!

Pharmk587 wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 05-27-2009 10:45 AM

Very nice site! <a href="opxaiey.com/.../1.html">cheap viagra</a>

Pharmk84 wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 05-27-2009 10:45 AM

Very nice site!  [url=opxaiey.com/.../2.html]cheap cialis[/url]

Pharmd86 wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 05-27-2009 10:45 AM

Very nice site! cheap cialis opxaiey.com/.../4.html

Pharme513 wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 05-27-2009 10:46 AM

Very nice site!

Pharma770 wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 05-27-2009 2:31 PM

Very nice site! <a href="opxaiey.com/.../1.html">cheap viagra</a>

Pharme19 wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 05-27-2009 2:31 PM

Very nice site!  [url=opxaiey.com/.../2.html]cheap cialis[/url]

Pharme801 wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 05-27-2009 2:31 PM

Very nice site! cheap cialis opxaiey.com/.../4.html

Pharme892 wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 05-27-2009 2:32 PM

Very nice site!

Pharmd509 wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 06-18-2009 3:51 PM

Very nice site! <a href="oixypea.com/.../1.html">cheap viagra</a>

Pharmg70 wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 06-18-2009 3:51 PM

Very nice site!  [url=oixypea.com/.../2.html]cheap cialis[/url]

Pharmb817 wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 06-18-2009 3:51 PM

Very nice site! cheap cialis oixypea.com/.../4.html

Pharmd776 wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 06-18-2009 3:52 PM

Very nice site!

Pharmg205 wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 06-19-2009 1:05 PM

Very nice site! <a href="opeaixy.com/.../1.html">cheap viagra</a>

Pharmf617 wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 06-19-2009 1:05 PM

Very nice site!  [url=opeaixy.com/.../2.html]cheap cialis[/url]

Pharm37 wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 06-19-2009 1:05 PM

Very nice site! <a href="opeaixy.com/.../1.html">cheap viagra</a>

Pharmd293 wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 06-19-2009 3:15 PM

Very nice site! <a href="opeaixy.com/.../1.html">cheap viagra</a>

Pharme974 wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 06-19-2009 3:15 PM

Very nice site! cheap cialis opeaixy.com/.../4.html

Pharmd798 wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 06-19-2009 3:15 PM

Very nice site!

Pharmd662 wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 06-19-2009 4:04 PM

Very nice site! <a href="opeaixy.com/.../1.html">cheap viagra</a>

Pharmd109 wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 06-19-2009 4:04 PM

Very nice site!  [url=opeaixy.com/.../2.html]cheap cialis[/url]

Pharmk904 wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 06-19-2009 4:04 PM

Very nice site! cheap cialis opeaixy.com/.../4.html

Pharma868 wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 06-19-2009 4:04 PM

Very nice site!

Pharmk217 wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 07-01-2009 7:28 AM

Very nice site! <a href="oixapey.com/.../1.html">cheap viagra</a>

Pharmd212 wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 07-01-2009 7:28 AM

Very nice site!  [url=oixapey.com/.../2.html]cheap cialis[/url]

Pharmd183 wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 07-01-2009 7:28 AM

Very nice site! cheap cialis oixapey.com/.../4.html

Pharme926 wrote re: Enabling anonymous users to open and submit data via InfoPath Forms published to SharePoint 2007
on 07-01-2009 7:28 AM

Very nice site!

Add a Comment

(required)  
(optional)
(required)  
Remember Me?
Need SharePoint Training? Attend a SharePoint Bootcamp!
Posts (c) their respective authors. Everything else (c) 2009 SharePoint Experts, Inc.