XFA Specification
Chapter 15, Template Specification
Template Reference
667
The validate element
A automation element that controls validation of user-supplied data.
<validate
Properties:
formatTest="warning
|
disabled
|
error"
id="xml-id"
nullTest="disabled
|
warning
|
error"
scriptTest="error
|
disabled
|
warning"
use="cdata"
usehref="cdata"
>
<extras>
[0..1]
<message>
[0..1]
<picture>
[0..1]
<script>
[0..1]
</validate>
The validate element is used within the following other elements:
exclGroup field proto subform
The extras property
An enclosure around one or more sets of custom properties. The content of this element may be used by
custom applications.
For more information see "The
extras element".
The formatTest property
Controls validation against the display
picture clause.
warning
Emit a
message
if the data cannot be coerced to fit the picture clause, but allow the user to
proceed to the next field (default).
disabled
Do not perform this test.
error
Emit a
message
and refuse to accept data that cannot be coerced to fit the picture clause.
The id property
A unique identifier that may be used to identify this element as a target.
The message property
A
automation
element that holds one or more sub-elements containing messages used with validations
and calculations.
For more information see "The
message element".
Home Index Bookmark Pages
Pages: Home Index All Pages