XML Element: initial-value
Displays a value in a local-entry field before the document owner enters any data. When the document owner later modifies the entry, the new data replaces the initial displayed value.
Set the local-entry element to read-only to display an initial value without it be being editable.
Number of occurrences |
Once for each containing entry. |
Parent elements |
local-entry |
Child elements |
sub-value |
Format
<wd:initial-value>Text string.</wd:initial-value>
Note: The text in an initial-value element is not enclosed in quotes as is the text in attributes and must be identical to one of the enumeration values.
Attributes
None.
Example
The following example shows an initial-value element for a local-entry that is a type of string:
<wd:local-entry
name=”comment 1”
title=”Stage Comment”>
<wd:type base=”string”/>
<wd:initial-value>Enter comments on progress since the last gate meeting.
</initial-value>
</wd:local-entry>
The following example shows an initial-value for a local-entry that is a type of date:
<wd:local-entry
title=”Market Launch”>
name=”Mkt Launch”
<wd:type base=”date”/>
<wd:initial-value>07/04/2014
</wd:initial-value>
</wd:local-entry>
The following example shows an initial-value for a local-entry that is a type of enum:
<wd:local-entry
title=”Tensile Quality”>
name=”Tear_Strength”
input-control="radio-button-group">
<wd:type base=”enum”/>
<wd:enumeration value="Easy"/>
<wd:enumeration value="Difficult"/>
<wd:enumeration value="Impossible"/>
<wd:initial-value>Easy</wd:initial-value>
</wd:local-entry>