<enabled> (Form Field Enabled)

This element specifies whether the parent form field shall behave as though it is enabled or disabled when it is displayed in the document. This setting shall have no effect on the behavior of this form field unless the document's Settings part specifies that the <documentProtection> element for the current document is in a state allowing the filling in of form fields.

If this element is omitted, then the parent form field shall be in its enabled state when the document settings specify that the document allows the filling-in of form fields.

example:
<w:fldSimple w:instr="FORMTEXT">
  <w:ffData>
    <w:enabled w:val="false"/>
    <w:textInput></w:textInput>
  </w:ffData>
</w:fldSimple>

The <enabled> element specifies that the state of the current text box form field is disabled; therefore this text box shall not be editable within the current document even when the state of the <documentProtection> element specifically allows the editing of form fields. ]

Parent Elements

<ffData>2.16.17)

Attributes

Description

<val> (On/Off Value)

Specifies a binary value for the property defined by the parent XML element.

A value of on, 1, or true specifies that the property shall be explicitly applied. This is the default value for this attribute, and is implied when the parent element is present, but this attribute is omitted.

A value of off, 0, or false specifies that the property shall be explicitly turned off.

<w:… w:val="off"/>

The @val attribute explicitly declares that the property is turned off. ]

The possible values for this attribute are defined by the ST_OnOff simple type (§2.18.67).

The following XML Schema fragment defines the contents of this element:

<complexType name="CT_OnOff">
	<attribute name="val" type="ST_OnOff"/>
</complexType>