node-tracker.formfocusorchangeevent
Home > @snowplow/node-tracker > FormFocusOrChangeEvent
FormFocusOrChangeEvent interface
Represents either a Form Focus or Form Change event When a user focuses on a form element or when a user makes a change to a form element.
Signature:interface FormFocusOrChangeEvent
Properties
| Property | Type | Description |
|---|---|---|
| elementClasses? | Array<string> | null | (Optional) The class names on the element |
| elementId | string | The element ID which the user is interacting with |
| formId | string | The ID of the form which the element belongs to |
| nodeName | string | The name of the node ("INPUT", "TEXTAREA", "SELECT") |
| schema | "change_form" | "focus_form" | The schema which will be used for the event |
| type? | string | null | (Optional) The type of element (e.g. "datetime", "text", "radio", etc.) |
| value | string | null | The value of the element at the time of the event firing |