The send element
Release 2.0 - ...
This action initiates submit processing by dispatching an xforms-submit event.
Example
XML | Copy Code |
---|---|
<xforms:trigger> <xforms:label>Send Color</xforms:label> <xforms:action ev:event="DOMActivate"> <xforms:send submission="submit_color"/> </xforms:action> </xforms:trigger> |
Attributes
Name | Required / optional | Description |
---|---|---|
submission | optional | Attribute containing a reference to a submission element. If this attribute is given but does not identify a submission element, then the send action has no effect. If this attribute is omitted, then the first submission in document order from the model associated with the in-scope evaluation context is used. |
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 send element does not allow any content.
Specification
Link to the XForms specification: the send element.