Name

reset

Synopsis

A reset control is probably the most overused form control on the web. (This is why XForms doesn’t define a reset control) Still, in the right circumstances, it’s necessary to reset a form, which is what this action does. It takes an attribute model, which contains the IDREF of the model element that will be reset.

The reset condition is defined as the state the instance data was in immediately after the xforms-ready event was dispatched. reset can be used like this:

<reset model="weather" ev:event="DOMActivate"/>

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.