designMode Attribute (view Element)

Microsoft Office InfoPath

Show All Show All

designMode Attribute (view Element)

Determines whether the view (*.xsl) file specified in a view element can be opened in design mode in Microsoft Office InfoPath 2003.

Type

xsf:xdDesignMode

Parent Elements

Element Description
view Contains information about a Microsoft Office InfoPath 2003 view.

Definition

    <xsd:attribute name="designMode" type="xsf:xdDesignMode" ></xsd:attribute>
  

Remarks

You can create a custom view for a form template by creating an XSL Transformation (XSLT) (*.xsl) file that contains constructs that are not supported in design mode in InfoPath. To ensure that a view can't be opened in design mode (and to prevent data loss), set the designMode attribute in the form definition file (.xsf) to "protected". Protected views are shown in all views lists and users can be fill them out like all forms, but they cannot be opened in design mode. If the designMode attribute is specified as "normal" or is not specified, the view can be opened in design mode.

Note  This item is not supported when the Disable Service Pack features option on the Advanced tab of the Options dialog box in InfoPath is selected or when Microsoft Office 2003 Editions Service Pack 1 or later is not installed. Any form defined by a form definition file (.xsf) that includes this item cannot be opened in InfoPath when service pack features are disabled or unavailable.

Example

The following is an example of the designMode attribute as it is used in the view element:

    <xsf:view name="View" caption="View" designMode="protected">
   <xsf:mainpane transform="view1.xsl"/>
      ...
</xsf:view>