Preparing InfoPath forms for approval by SharePoint administrators

A farm administrator must approve InfoPath form templates that contain custom .NET code before they can be used in SharePoint. Form templates are prepared for approval in the InfoPath Designer and then sent to the farm administrator for approval.

In this recipe, we will prepare the form we created in the previous recipe Adding custom .NET code to an InfoPath form for approval.

Getting ready

For this recipe, we will need the InfoPath form created in the previous recipe Adding custom .NET code to an InfoPath form.

How to do it...

Follow these steps to prepare our InfoPath form for approval:

  1. With our form template containing .NET code open, select SharePoint Server from the Publish section of the File menu.
  2. Provide the URL to the site collection we will publish the form to in the end and click on Next.

    Tip

    The URL provided here should be a URL from the farm we are publishing to. It does not necessarily have to be the site collection URL.

  3. Select Administrator-approved form template (advanced) and click on Next, as shown in the following screenshot:
    How to do it...
  4. Specify a location to save the prepared form and click on Next. Since we will be uploading the form, we can save it to our local hard drive. When providing the form to a farm administrator, we could save the form to a SharePoint library, a network file share, and so on.
  5. Provide any applicable SharePoint columns for the form template to populate and click on Next.
  6. Click on Publish.

How it works...

InfoPath form templates with custom .NET code must run with full trust in SharePoint. In order for a template to be approved, it must be uploaded by a farm administrator in Central Administration. Publishing an administrator-approved form template prepares the form template to be uploaded. Alternatively, InfoPath forms may be included as part of a custom SharePoint solution in Visual Studio.

See also

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.142.156.235