The action element
Release 2.0 - ...
This action causes its child actions to be invoked in the order that they are specified in the document.
Example
XML | Copy Code |
---|---|
<xforms:trigger> <xforms:label>Click me</xforms:label> <xforms:action ev:event="DOMActivate"> <xforms:reset model="thismodel"/> <xforms:setvalue ref="."/> </xforms:action> </xforms:trigger> |
Attributes
Name | Required / optional | Description |
---|---|---|
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
Within an action element, the following child elements are allowed:
Element Name | Required / optional | Description |
---|---|---|
Action element(s) | optional | Any element from the Action Elements Collection. |
Specification
Link to the XForms specification: the action element.