Name

The xforms-model-construct-done Event

Synopsis

Event type: lifecycle
Event target element: model
Bubbles: Yes
Cancelable: No

Warning

When “lazy author” processing is used—when the XForms processor synthesizes instance data based only on form controls—the XForms Model is not yet initialized when this event fires. In practice, this is not a serious problem, since “lazy author” forms are typically very simplistic, and don’t use XML Events or XForms Actions at all.

This initialization event occurs after the XForms Model has been initialized, but before the user interface has, making it the perfect place to perform any data-level initialization tasks, before any data shows up in a form control.

Get XForms Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.