An administrator must approve this form template before it can be filled out by using browser - InfoPath Dev
in

InfoPath Dev

An administrator must approve this form template before it can be filled out by using browser

Last post 01-18-2012 08:28 PM by shrirampophali. 6 replies.
Page 1 of 1 (7 items)
Sort Posts: Previous Next
  • 11-27-2010 12:15 AM

    An administrator must approve this form template before it can be filled out by using browser

    hi All,

    In infopath Publishing wizard,  after enter site url then next button

    in the above "Enable this form to be filled out by using a browser" checkbox: i got below message

    " An administrator must approve this form template before it can be filled out by using browser "

    Any Idea why it comes

     

    Thanks

    MAK

  • 11-27-2010 03:49 AM In reply to

    Re: An administrator must approve this form template before it can be filled out by using browser

    When you want to use an InfoPath form in the browser, and the form contains code, you must admin deploy the form. Here are some Microsoft links to help you:

    http://msdn.microsoft.com/en-us/library/bb250997%28office.12%29.aspx#BCWith

    http://technet.microsoft.com/en-us/library/cc262921.aspx

    Good luck.

    Ernesto Machado
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™


  • 11-27-2010 05:29 AM In reply to

    Re: An administrator must approve this form template before it can be filled out by using browser

    Hi , Thx for sharing knowledge. I am trying to access the below url in infopath c# coding . SPSite site = new SPSite(http://srv-hq-itd-tmp1/Pages/); its is given error : The Web application at http://srv-hq-itd-tmp1/Pages/ could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application. same url is working fine in windows and console application...but not working infopath coding... I dont know why ? Can u help out ... Thank MAK..!
  • 11-29-2010 08:16 AM In reply to

    Re: An administrator must approve this form template before it can be filled out by using browser

    Ernesto Machado
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™


  • 12-28-2011 01:45 AM In reply to

    Re: An administrator must approve this form template before it can be filled out by using browser

    Hi, 

    I am not sure if you are still looking for a solution on this but i think still it can help others. I too struggled a lot with this issue and finally got it working with the assistance from one of the friend.

    It goes like this:

    If your InfoPath form is having any type of code attached then publishing wizard wont allow you to publish it directly to Sharpoint Site, instead it would require a permission from "Sharepoint Central Administrator" to verify it first and then activate it explicitely on the Sharepoint site. A question can popup in anybody's mind that why it is like this? Answer could be "security measures". InfoPath Forms attached with unknown code could harm the entire site collection or may be farm so sharepoint provides this authorization mechanism.

    Use following guide in sequential order:

    (Please note: i worked on following versions: InfoPath 2007, MOSS 2007, WSS 3.0, InfoPath Forms Services) 

    A] In InfoPath Designer:

    - Allow Full Trust to the form from location “Tools >> Form Options >> Security and Trust”

    - Select checkbox “Design a form template that can be opened in a browser or InfoPath” in "Tools >> Form Options >> Compatibility"

    B] Publishing the form from InfoPath Designer:

    - Screen1 : Select option “To a Sharepoint server with or without InfoPath Forms Services”

    - Screen 2:  Enter the location of your Sharepoint or InfoPath Forms Services site

    - Screen3: You might notice a help text on the top saying “ An Administrator must approve and blah blah blah”. This help text appears when there is code associated with InfoPath Forms. Just continue by selecting following options from the screen.

    -  Select checkbox “Enable the form to be filled out by using a browser” and then select “Administrator approved form template(advanced)”.

    - Screen4: Specify a physical location and file name for the form template where you want to store it.

    - Screen5: Do nothing and Just click Next

    - Screen6: Click Publish

    - Screen7: Click Close

    You are done with “InfoPath Forms Designer” side.

    Now let’s move to “Sharpeoint Central Administration” to approve the published form template by the administrator and Activate it on Site Collection

    - Open Sharepoint Central Administration >> Application Management >> In “InfoPath Forms Services” section click “Manage form templates”

    - Upload Form Template >> Select the published form template from the physical location used above  (Do not change other default settings on this page) >> Click “Ok”

    - In Manage Form Templates list, Right click newly added infopath form template item and activate it to the desired site collection by clicking “Activate to site collection” link. This will activate a feature on site collection level and would add it to the “Form Templates” library. You can check whether the feature is activated by going into that site collection features section and also you can verify whether published template is added to the “Form Templates” library or not.

    - Now to add Info path form to webpart, Go to Home page >>> Edit Page >>> Add Page Viewer Web Part >>> Provide url in following format >>> Click Ok >>> Exit Edit Mode

    http:// <site name>/_layouts/FormServer.aspx?XsnLocation=http://<site name>/FormServerTemplates/<published InfoPath form template name>.xsn&OpenIn=browser 

    That's it! Now you should be able to see the InfoPath Form contents on your Sharepoint site page.

    I hope it helps!

  • 12-30-2011 08:14 AM In reply to

    Re: An administrator must approve this form template before it can be filled out by using browser

    First of all, very nice post, good directions. I too went through some tough times trying to figure this process out. Eventually, after reading lots of posts and blogs (none as well documented as yours) I came up with the same process.

    But I still have a few unanswered questions and was wondering if you had run into any answers...

    1. When publishing an administrative form, such as you describe above, the only place you can publish the form to is a forms library in your top site. There seems to be no way to publish it to a library located in a sub site. So if I have a top level site called MyCompany and a sub level site called Company Forms. I can only publish the form to the forms library in MyCompany not MyCompany/Company Forms...

    2. When adding a form to a form to a Form Web Part I can only access form libraries in that site, not in any site above or below it. So if i have published a form to MyCompany and I want to display it in MyCompany/Departments/Sales, I cannot. Have you found a workaround to that or is there something that I am missing?

    Thanks again for your post and any information you can swing my way on this topic.

    Steven 

  • 01-18-2012 08:28 PM In reply to

    Re: An administrator must approve this form template before it can be filled out by using browser

    Thanks Steven!

    As per my understanding, Sharepoint allows to activate InfoPath form templates to a Site Collection level (i,e. to your root site) and not to any subsite level. If you just take a look at the "Manage Form Templates" library from CA and right click any item, you can see option as "Activate to a Site Collection". This makes published form templates available to be utilised throughout the site collection means to root site and any subsites within site collection, so you can utilise these templates(e.g. in page viewer web parts) in your subsites as well. I hope this asnwers your first query.

    Can you elaborate more on your second query for Form Web Parts and what you are trying to achieve here.

    - Shriram

     

Page 1 of 1 (7 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.