Events Overview

Release 2.0 - ...

XForms processing is defined in terms of events, event handlers and event responses. XForms uses the events system defined in DOM2 Events and XML Events, with an event capture phase, arrival of the event at its target, and finally the event bubbling phase.

The table below shows an overview of the XForms events.

 

Event Name Cancelable Bubbles Target Element
Initialization Events
xforms-model-construct No Yes model
xforms-model-construct-done No Yes model
xforms-ready No Yes model
xforms-model-destruct No Yes model
Interaction Events
xforms-rebuild Yes Yes model
xforms-recalculate Yes Yes model
xforms-revalidate Yes Yes model
xforms-refresh Yes Yes model
xforms-reset Yes Yes model
xforms-previous Yes No Core Form Controls
xforms-next Yes No Core Form Controls
xforms-focus Yes No Core Form Controls | group | switch | repeat
xforms-help Yes Yes Core Form Controls
xforms-hint Yes Yes Core Form Controls
xforms-submit Yes Yes submission
xforms-submit-serialize Yes Yes submission
Notification Events
xforms-insert No Yes instance
xforms-delete No Yes instance
xforms-value-changed No Yes Core Form Controls
xforms-valid No Yes Core Form Controls | group | switch
xforms-invalid No Yes Core Form Controls | group | switch
xforms-readonly No Yes Core Form Controls | group | switch
xforms-readwrite No Yes Core Form Controls | group | switch
xforms-required No Yes Core Form Controls | group | switch
xforms-optional No Yes Core Form Controls | group | switch
xforms-enabled No Yes Core Form Controls | group | switch
xforms-disabled No Yes Core Form Controls | group | switch
DOMActivate Yes Yes Core Form Controls
DOMFocusIn No Yes Core Form Controls | group | switch | repeat
DOMFocusOut No Yes Core Form Controls | group | switch | repeat
xforms-select No Yes item | case
xforms-deselect No Yes item | case
xforms-in-range No Yes Core Form Controls
xforms-out-of-range No Yes Core Form Controls
xforms-scroll-first No Yes repeat
xforms-scroll-last No Yes repeat
xforms-submit-done No Yes submission
Error Indications
xforms-binding-exception No Yes Any element that can contain a binding expression
xforms-compute-exception No Yes model
xforms-version-exception No Yes The default model
xforms-link-exception No Yes model
xforms-output-error No Yes output
xforms-submit-error No Yes submission

Topics