Please enable JavaScript to view this site.

Navigation: Advanced topics > Programming topics

How to access fields in the field events

Scroll Prev Next More

Access fields from ClientBefore, ClientAfter events

Variables available in the field events


the current field, a Control object.


a RunnerPage object.




Set the value of the current field to 100.



ctrl.getPeer( field )

Returns another field control from the same page of the same row in an inline mode:


var ctlPrice = ctrl.getPeer('price');
ctlPrice.setValue( 1000 );

Runner.getControl( pageid, fieldName )

Returns the field control. Works in any events where the pageObj variable is available.


var ctlPrice = Runner.getControl( pageid, 'price');
ctlPrice.setValue( 1000 );

Access fields from the Server events


an array of values to return from the server.


returns an associative array with field values (field name => value).

$data = $ajax->getCurrentRecord();
$result["record"] = $data;
$result["email"] = $data["email"];

See also:

JavaScript API: Date Control API > setValue()

JavaScript API: RunnerPage object

JavaScript API: Control object

Field Events

Tri-part events


Created with Help+Manual 7 and styled with Premium Pack Version 3 © by EC Software