Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
warning Element

warning Element

Office 2007

Defines whether a category of message is visible in the Design Checker task pane.

Usage


<warning
	source="xsd:string"
	hidden="xsf:xdYesNo"
/>

Element Information

Element type xsd:complexType
Namespace xsf2

Elements and Attributes

Parent Elements

ElementDescription
warningsContains warning elements that specify whether a category of message is visible in the Design Checker task pane.

Child Elements

None.

Attributes

AttributeTypeRequiredDescriptionPossible Values
sourcexsd:stringRequiredSpecifies the message category to display or hide. Corresponds to settings of the Options button in the Design Checker task pane.

Note   If this element or attribute is in the form definition file (.xsf), InfoPath Forms Services will ignore this setting when the form template is deployed to the server as a browser-compatible form.
"browsercompatibility", "browsweroptimization","import", "offline"
hiddenxdYesNoOptionalSpecifies whether the category is hidden.

Note   If this element or attribute is in the form definition file (.xsf), InfoPath Forms Services will ignore this setting when the form template is deployed to the server as a browser-compatible form.
"yes", "no"

Definition


<xsd:element name="warning">
   <xsd:complexType>
      <xsd:sequence />
      <xsd:attribute name="source" type="xsd:string" use="required" />
      <xsd:attribute name="hidden" type="xsf:xdYesNo" use="optional" default="no" />
   </xsd:complexType>
</xsd:element>

Remarks

The warnings element contains a set of warning elements that correspond to the different categories of messages that a use can make hidden or visible using the Options drop-down button on the Design Checker task pane. The value of the source attribute of a warning element corresponds to one of the message categories in the following table.

source AttributeMessage Category
browsercompatibility Browser Compatibility
browsweroptimizationBrowser Optimization
importImport
offlineOffline

Note   If this element or attribute is in the form definition file (.xsf), InfoPath Forms Services will ignore this setting when the form template is deployed to the server as a browser-compatible form.

Example

The following is an example of the warnings parent element with a set of warning elements.


<xsf2:warnings>
   <xsf2:warning source="browsercompatibility" hidden="yes"></xsf2:warning>
   <xsf2:warning source="browsweroptimization" hidden="yes"></xsf2:warning>
   <xsf2:warning source="import" hidden="yes"></xsf2:warning>
   <xsf2:warning source="offline" hidden="yes"></xsf2:warning>
</xsf2:warnings>


Community Additions

ADD
Show:
© 2015 Microsoft