For each event, except the mouse related events, the static event object is populated with the
following data. In most events, it is important for JavaScript to set the
rc
(return code)
property to indicate that the event can proceed.
selEnd
Type: Integer
Event: Keystroke
Access: R/W
This property specifies the ending position of the current text selection during a keystroke
event.
selStart
Type: Integer
Event: Keystroke
Access: R/W
This property specifies the starting position of the current text selection during a keystroke
event.
shift
Type: Boolean
Event: Keystroke, Mouse events Access: R
This property is a boolean that specifies whether the shift key is down during a particular
event.
target
Type: Object
Event: All events
Access: R
This property contains the target object that triggered the event. In all mouse events it is the
field object that triggered the event. In other events like page open and close it is the document
or
this Object.
value
Type: Various
Event: Validate, Calculate, Format, SelChange Access: R/W
For the
validate
event,
value
is the value that the field contains when it is committed. The
current field value is the
value
property for the field. For example, the following JavaScript
verifies that the field value is between zero and 100.
Example:
if (event.value < 0 || event.value > 100) {
app.beep(0);
Acrobat Forms - JavaScript Object Specification
34
Index Bookmark Pages Text
Previous Next
Pages: Index All Pages
This HTML file was created by VeryPDF PDF to HTML Converter product.