Skip to main content

Input Events

The Input Widget can fire an onChange event to the backend when its value changes. This behavior is optional and must be explicitly enabled per field.


Enabling the onChange Event

Enable the On Change Handler property in the widget's Properties Panel to activate event dispatching for that field.

When enabled, the widget sends an onChange event to the backend each time the value is committed (see Event Timing below).


Event Details

onChange

Fired when the field value is committed and On Change Handler is enabled.

The backend receives a request containing:

FieldDescription
widgetNameThe internal name of the input field.
widgetValueThe current value of the field.
widgetEventAlways "onChange" for this event.

The backend uses widgetName and widgetEvent to identify the source field and the event type, then returns an appropriate response.

Request payload example


Event Timing

The point at which the event is dispatched depends on the active input mode and the device type.

ModeDesktopMobile
TextOn blur (when the field loses focus)On input (on each keystroke)
Text with CopyOn blurOn input
DateOn blur (after date selection)On blur
TimeOn change (immediately after selection)On change
Date & TimeOn blur (after selection)On blur
PhoneOn blurOn input
CurrencyOn blurOn input
PasswordOn blurOn input
info

On mobile devices, most modes update the form value immediately as the user types rather than waiting for the field to lose focus. This ensures the backend receives an accurate value when navigating between fields quickly.


Stored Value Format

Date and time modes always store and send values as ISO 8601 UTC strings, regardless of the display format configured in the properties panel.

ModeStored FormatExample
TextPlain string"Invoice 2024-001"
Text with CopyPlain string"ABC-123"
DateISO 8601 UTC"2024-06-15T00:00:00.000Z"
TimeISO 8601 UTC"1970-01-01T14:30:00.000Z"
Date & TimeISO 8601 UTC"2024-06-15T14:30:00.000Z"
PhoneMasked string"(555) 1234-5678"
CurrencyNumeric string"1250.00"
PasswordPlain string"secret"