EditField Configuration
The XML data-island identified by the MetaXML container attribute contains the configuration information used by one or more EditField HTML components (HTCs).
For more information about how an XML document can be included on a page (creating an XML data-island), see XML Data-Islands.
The structure of this data-island is shown below, with links to more detailed explanations of each element. Element attributes are shown in italic and without the values that are normally associated with them. Required elements and attributes are shown in bold; optional elements and attributes are not in bold.
Note
- The XML elements and attributes in the MetaXML data-island for the EditField HTC must be expressed in lowercase letters.
XML Structure
<editfield>
<booleanbrowse browsereadonly default disabled hideid onbrowse onchange onerror readonly
<browsetooltip>Tooltip for browse button</browsetooltip>
<label>Checkbox label</label>
</boolean>
<datebrowse browsereadonly default disabled firstday hide id max min onbrowse onchange onerror onrequire onvalid readonly required
<browsetooltip>Tooltip for browse button</browsetooltip>
<error>Validation error message</error>
<format>Date format to use</format>
<prompt>Empty control prompt</prompt>
</date>
<numericbrowse browsereadonly default disabled hide id max min onbrowse onchange onerror onrequire onvalid readonly required subtype
<browsetooltip>Tooltip for browse button</browsetooltip>
<error>Validation error message</error>
<format>Number format to use</format>
<prompt>Empty control prompt</prompt>
</numeric>
<selectbrowse browsereadonly default disabled hide id onbrowse onchange onerror onvalid readonly
<browsetooltip>Tooltip for browse button</browsetooltip>
<prompt>Empty control prompt</prompt>
<selectid>
<optionvalue>Item display name</option>
</select>
...
<selectid>
<optionvalue>Item display name</option>
</select>
</select>
<textbrowse browsereadonly default disabled hide id maxlen minlen onbrowse onchange onerror onrequire onvalid readonly required subtype
<browsetooltip>Tooltip for browse button</browsetooltip>
<charmask>Validation character mask</charmask>
<error>Validation error message</error>
<prompt>Empty control prompt</name>
</text>
<timebrowse browsereadonly default disabled hideid max min onbrowse onchange onerror onrequire onvalid readonly required
<browsetooltip>Tooltip for browse button</browsetooltip>
<error>Validation error message</error>
<prompt>Empty control prompt</prompt>
</time>
</editfield>
editfield
This required****element provides a container for the configuration data associated with one or more EditField HTCs. This allows multiple EditField HTCs to share a single XML editfield data-island, accessing different configuration information using distinct id attribute values.
Parent Element
None (document root).
Required Child Elements
None.
Optional Child Elements
boolean, date, numeric, select, text, time
(at least one is required; order not important)
Data
None.
Attributes
None.
Return to XML Structure
boolean
This optional element provides configuration and validation information about an EditField HTC of the Boolean type.
Parent Element
editfield
Required Child Elements
None.
Optional Child Elements
browsetooltip, label
Data
None.
Attributes
Attribute | Description |
id, browse, browsereadonly, default, disabled, hide, onbrowse, onchange, onerror, readonly | The id attribute is required. All others are optional.
For more information about these attributes, see Shared EditField Attributes. |
Return to XML Structure
date
This optional element provides configuration and validation information about an EditField HTC of the Date type.
Parent Element
editfield
Required Child Elements
None.
Optional Child Elements
browsetooltip, error, format, prompt
Data
None.
Attributes
Attribute | Description |
id, browse, browsereadonly, default, disabled, hide, max, min, onbrowse, onchange, onerror, onrequire, onvalid, readonly, required | The id attribute is required. All others are optional.
For more information about these attributes, see Shared EditField Attributes. |
firstday | Specifies the day of the week that is considered to be the first day of the week.
Optional. Legal values: Integers between 0 (Sunday) and 6 (Saturday), inclusive. Default value: 0 (Sunday) |
Return to XML Structure
numeric
This optional element provides configuration and validation information about an EditField HTC of the Numeric type.
Parent Element
editfield
Required Child Elements
None.
Optional Child Elements
browsetooltip, error, format, prompt
Data
None.
Attributes
Attribute | Description |
id, browse, browsereadonly, default, disabled, hide, max, min, onbrowse, onchange, onerror, onrequire, onvalid, readonly, required, subtype | The id attribute is required. All others are optional.
For more information about these attributes, see Shared EditField Attributes. |
Return to XML Structure
select
This optional element provides configuration and validation information about an EditField HTC of the Select type.
Parent Element
editfield
Required Child Elements
select
Optional Child Elements
browsetooltip, prompt
Data
None.
Attributes
Attribute | Description |
id, browse, browsereadonly, default, disabled, hide, onbrowse, onchange, onerror, onvalid, readonly | The id attribute is required. All others are optional.
For more information about these attributes, see Shared EditField Attributes. |
Return to XML Structure
text
This optional element provides configuration and validation information about an EditField HTC of the Text type.
Parent Element
editfield
Required Child Elements
None.
Optional Child Elements
browsetooltip, charmask, error, prompt
Data
None.
Attributes
Attribute | Description |
id, browse, browsereadonly, default, disabled, hide, maxlen, minlen, onbrowse, onchange, onerror, onrequire, onvalid, readonly, required, subtype | The id attribute is required. All others are optional.
For more information about these attributes, see Shared EditField Attributes. |
Return to XML Structure
time
This optional element provides configuration and validation information about an EditField HTC of the Time type.
Parent Element
editfield
Required Child Elements
None.
Optional Child Elements
browsetooltip, error, prompt
Data
None.
Attributes
Attribute | Description |
id, browse, browsereadonly, default, disabled, hide, max, min, onbrowse, onchange, onerror, onrequire, onvalid, readonly, required | The id attribute is required. All others are optional.
For more information about these attributes, see Shared EditField Attributes. |
Remarks
The format of fields associated with the time element is fixed. Hours and minutes are displayed in a 24-hour format, separated by the colon character (":"). Seconds are not supported.
Return to XML Structure
browsetooltip, charmask, error, format, label, prompt, select, option
These eight elements are used to qualify or extend the behavior of one or more of the EditField elements of various data types. For more information, see Shared EditField Child Elements.
Return to XML Structure