Condividi tramite


Previewing Form Templates on InfoPath Forms Services

Applies to: SharePoint Server 2010

When creating a form template in the InfoPath Designer 2010, you can specify the domain of the SharePoint Server in which the form will be published so that it will behave as if it were running in that domain when you preview it. This is a useful debugging technique if the form template's security level is set to Domain and it has one or more data connections to other domains.

To preview the form in the target publish domain

  1. In the InfoPath Designer 2010, click the File tab, and then click Form Options.

  2. In the Form Options dialog box, click the Preview category.

  3. In the Domain section of the dialog box, type the domain of the SharePoint site collection in which the form template will be published.

When you preview the form it will behave as if it is published in the domain that you entered.

Note

This technique will only work for form templates where the security level is set to Domain. Form templates that contain custom form code that requires a security level of Full Trust must first be deployed by a server administrator before they can be viewed in a Web browser. To do that, follow the steps in the How to: Deploy Form Templates That Contain Form Code That Requires Full Trust topic.