xforms:resetAdded by IBM on October 10, 2012 | Version 1 (Original)
|Returns a particular XForms model to the state it was in when the form was opened. This allows the user the reset the contents of the form to their "starting point", which can increase usability of the form.
Table 1. reset parameters
<xforms:reset event model="model"/>
|event||string||The XForms event that triggers the action.|
|model||string||The ID of the model to reset. If the model attribute is omitted, then the default model is used.|
Example The following model contains data for a change of address, as well as a submission that sends the information for processing. Once the data is submitted, an xforms:reset action is triggered. This action resets the data in the form, allowing the user to type in the next address change without have to close the form and open it again. This allows for rapid entry of several changes. Note that this requires the submission button to be of type submit rather than done.
<xforms:submission id="submit" method="post"