<result> (Drop-Down List Selection)

This element specifies the zero-based index of the currently selected entry for the parent drop-down list form field.

If this element is omitted, then the current drop-down list form field shall have the selection specified by the value of the <default> element (§2.16.11). If the attribute value references an index value which does not exist (i.e. a negative number or a number that exceeds the number of items in the drop-down list), then this value may be ignored and the current drop-down list form field shall have the selection specified by the value of the <default> element.

example:
<w:fldSimple w:instr="FORMDROPDOWN">
  <w:ffData>
    <w:ddList>
      <w:default w:val="1" />
      <w:result w:val="2" />
      <w:listEntry w:val="One" />
      <w:listEntry w:val="Two" />
      <w:listEntry w:val="Three" />
    </w:ddList>
  </w:ffData>
</w:fldSimple>

The <result> element specifies the index of the currently selected value of the drop-down list form field to be 2. In this case, the resulting default value text is Three. ]

Parent Elements

<ddList>2.16.9)

Attributes

Description

<val> (Decimal Number Value)

Specifies that the contents of this attribute will contain a decimal number.

The contents of this decimal number are interpreted based on the context of the parent XML element.

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

The value of the @val attribute is a decimal number whose value must be interpreted in the context of the parent element. ]

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

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

<complexType name="CT_DecimalNumber">
	<attribute name="val" type="ST_DecimalNumber" use="required"/>
</complexType>