XFA Specification
Chapter 15, Template Specification
Template Reference
620
The name property
An identifier that may be used to identify this element in script expressions.
The runAt property
Specifies where the script is allowed to run.
This restrictions also applies when this script is called by another script. Hence a script marked to run only
on one side can only be called on that side.
The value must be one of the following:
client
The script runs only on the client.
server
The script runs only on the server.
both
The script runs on both client and server.
There are important security considerations when using scripts that may run on the server. See
"Discarding
Unexpected Submitted Packets"
for a full discussion of security issues.
The stateless property
(DEPRECATED) Determines whether the a script's variables persist from one invocation to the next.
0
The script's variables do persist (it is stateful).
1
The script's variables do not persist (it is stateless).
This property has been deprecated.
The use property
Invokes another object in the same document as a prototype for this object. The content of this property is
either a SOM expression (which cannot start with '#') or a '#' character followed by an XML ID.
Starting with XFA 2.4 the object used as a prototype no longer needs to be the child of
proto
. Any object
of the appropriate class can be used as a prototype.
If both
use
and
usehref
are non-empty
usehref
takes precedence.
The usehref property
Invokes an external object as a prototype for this object. The content of this property is an URL, followed
by '#', followed by either an XML ID or by som(SOM_expr) where
SOM_expr
represents a SOM expression.
The XML ID or SOM expression is resolved in the context of the external document.
If both
use
and
usehref
are non-empty
usehref
takes precedence.
Home Index Bookmark Pages
Pages: Home Index All Pages