New to rules? Read Field rules first. It covers events, function naming, and how to build a field key — the parts you need before any of this is useful.
The field object
Every field on the form is reachable asfield.<fieldKey>. Inside an OnChange, OnBlur, OnFocus, or OnClick handler, the argument you receive is that same object, so value.getValue and field.<its own key>.getValue are equivalent.
Reading and writing the value
getValue on a table or detail field does not return the data painted into it. If you need that data at submit time, rebuild it in the submit handler rather than reading it back.Validation state
Visibility and interaction
setVisible and setRender are no-ops in table render context. For behavior that must work in a table, change values, errors, or enabled state instead.Identity
Events
Call theon* members to re-trigger a field’s own event. Call the setOn* members to replace a handler at runtime — rules normally attach through the Page Designer instead, so these are rare in a rule body.
OnChange handlers are debounced by 500 ms. Set
_delay on the handler function to change it — for example myHandler._delay = 0 for no debounce.Extra properties
setProperties(props) sets field-type-specific options. On a date field, for example, it constrains which dates can be picked:
Form helpers
failfast.myFormHelpers controls the form as a whole. These are what OnLoad, OnSubmit, and OnDelete rules work through.
Note helpers
failfast.myNoteHelpers reads and writes the form’s note. All three are asynchronous — if the editor hasn’t mounted yet, the call waits and applies once it does.
Workspace context
failfast carries information about who is working and in what context. field and failfast are the same object, so either name works.
Context actions
Services and processes
Registries
Four names give a rule access to fields — the difference is which form’s fields they hold.
These are live objects, so anything you assign to one is visible to every rule that runs afterwards. That is how you share a helper between rules — see sharing logic.
Built-in objects
These are in scope in every rule body.await works anywhere in a rule body — asynchronous handling is applied for you.Load related data in one request using the fields parameter rather than one request per relation. fields=customer__name,customer__document_number walks forward through relations; a reverse relation comes back as an array. The request and response formats are documented in the API reference.Shared helpers
These functions come from your workspace’s rule catalog and are callable by name from any rule.Your workspace may define additional catalog helpers beyond these four. Open the Code menu in the Page Designer to see what is available.
Selector configuration
An OnClick rule on a selector field returns a configuration object. Every key is optional — return only what you need.Return values by event
Related pages
Field rules
Events, naming, field keys, and the patterns these methods are used in.
Page Designer
Where rules are attached, under the Code menu.

