Design-Once Feature Compatibility

SharePoint 2010

Last modified: July 06, 2010

Applies to: SharePoint Server 2010

When designing InfoPath form templates for use in both Microsoft InfoPath 2010 and in a Web browser, there is a small set of features that are hidden from InfoPath Designer. These features are available if a form template is created for use in InfoPath Filler, but they are exceptions to the Design-Once development principle of InfoPath 2010. Design-Once refers to the ability to design a form template that can be used in InfoPath Filler and rendered in a Web browser by a server that is running InfoPath Forms Services.

Exceptions include some controls, such as the Master/Detail control and the Vertical Label control, some features, such as user roles and spell checking, and code written in the scripting languages JScript and VBScript and the backward-compatible managed code languages introduced with Office InfoPath 2003 with Service Pack 1. For more information, see Creating InfoPath Form Templates That Work With InfoPath Forms Services in the Microsoft Visual Studio Tools for Applications Help system.

Important note Important

If you are designing a form to be used in both InfoPath Filler and in a Web browser, and you need to use excluded object model members when the form is opened in InfoPath Filler, you can hide errors in the Design Checker task pane. To do this, open the form template in InfoPath Designer, click the File tab, and then click Form Options in the Backstage. On the Compatibility category in the Form Options dialog box, click the Allow code to use features that work only when filling forms with InfoPath Filler check box. To determine the environment in which the form is currently open, use the Environment property of the Application class. More information about how to use this property can be found in the Microsoft Visual Studio Tools for Applications Help system.