XFA Specification
Chapter 15, Template Specification
Template Reference
459
The calculate element
An automation element that controls the calculation of its container's value.
<calculate
Properties:
id="xml-id"
override="disabled
|
warning
|
error
|
ignore"
use="cdata"
usehref="cdata"
>
<extras>
[0..1]
<message>
[0..1]
<script>
[0..1]
</calculate>
The calculate 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 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".
The override property
Determines whether the calculated value can be overridden by the user in an interactive context, or
disables calculation in any context.
When there is no accompanying
script
element this property has no effect and the user is free to enter a
value into the container. Otherwise the behavior is as described below.
disabled
The calculation is disabled. In an interactive context the user is free to enter data into the field. The
effect of this override value is independent of user action. The
disabled
value allows an event
script to dynamically enable/disable a calculate element.
error
The calculation is enabled. The processing application must not change the calculated value with
any user-supplied values. User attempts to directly set the value derived by a calculate object
Home Index Bookmark Pages
Pages: Home Index All Pages