Skip to main content

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

PropertyTypeDescription
elementClasses?Array<string> | null(Optional) The class names on the element
elementIdstringThe element ID which the user is interacting with
formIdstringThe ID of the form which the element belongs to
nodeNamestringThe 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.)
valuestring | nullThe value of the element at the time of the event firing