Saturday, September 19, 2009

While Publishing InfoPath error comes as Administrator must approve this form template before it can be filled out by using a browser.

Was in a training session recently working on InfoPath forms and when tried publishing it to a sharepoint server, the following message was coming:
"An administrator must approve this form template before it can be filled out by using a browser. The template may contain form code, require full trust, be enabled to render on a mobile device, or use a data connection managed by a server administrator."
After some meddling here and there, found that this was the reason since my InfoPath had some managed code in it. Now I did not add any managed code in there myself, so how did it come there. Well it was due to the reason that I had gone in the programming option while modifying a control's properties, and opened VSTA (Visual Studio Tools Application). Although I closed it without adding anything into it, their was some default code generated. To remove that follow these steps:
Go to Tools Menu -> Form Options -> Programming menu
In there a "Remove Code" button is there, click on that, all the managed code should be removed. Now try publishing the InfoPath on the server again, and it should work fine.
Happy SharePointing!!

No comments:

Post a Comment