[Table of Contents] [docx version]
WordprocessingML Reference Material - Table of Contents
type (Text Box Form Field Type)
This element specifies the type of the contents of the current text box form field. This element shall not be used to prevent the successful loading of any contents in the field, but shall be used to parse the formatting specified in the format element (§2.16.22) and should be used to prevent the addition of illegal content when its contents are edited by an application.
If this element is omitted, then its default value shall be assumed to be regular.
[Example: Consider the following WordprocessingML fragment for the properties of a text box form field:
<w:ffData>
<w:textInput>
<w:type w:val="number" />
<w:maxLength w:val="4" />
<w:format w:val="0.00" />
</w:textInput>
</w:ffData>
The type element specifies that the contents of this form field should be handled as a number by an application. end example]
Parent Elements |
textInput (§2.16.33) |
Attributes |
Description |
val (Text Box Form Field Type Values) |
Specifies the type of the text box form field, as defined by the simple type referenced below.
[Example: Consider the following WordprocessingML fragment for the properties of a text box form field:
<w:ffData>
The val attribute value of currentDate specifies that the contents of this form field should be the current date when the field is updated. end example]
The possible values for this attribute are defined by the ST_FFTextType simple type (§2.18.32). |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_FFTextType">
<attribute name="val" type="ST_FFTextType" use="required"/>
</complexType>