The revalidate element
Release 2.0 - ...
This action causes the default processing of xforms-revalidate to happen, bypassing the normal event flow (i.e. the behavior occurs without dispatching the xforms-revalidate event).
This results in the instance data being revalidated as specified by the processing model.
In general, the XForms processor automatically runs this action when required. As such, this action is included mostly for completeness.
Example
XML | Copy Code |
---|---|
<xforms:trigger> <xforms:label>Revalidate</xforms:label> <xforms:revalidate ev:event="DOMActivate" model="x"/> </xforms:trigger> |
Attributes
Name | Required / optional | Description |
---|---|---|
model | optional | XForms model selector, as defined in Single Node Binding Atttributes. If this attribute is omitted, then the default is the model associated with the in-scope evaluation context node. |
Common Attributes | optional | Any attribute from the Common Attributes collection (e.g. id). |
XML Events | optional | Any attribute from the XML Events collection (e.g. ev:event) |
Common Action Attributes | optional | Any attribute from the Common Action Attributes collection (if or while) |
Content
The revalidate element does not allow any content.
Specification
Link to the XForms specification: the revalidate element.