The xforms-submit-serialize event

Release 2.0 - ...

Dispatched at the beginning of submission serialization (see the xforms-submit event).

Event Properties

Event Properties Value / Description
Target submission
Bubbles Yes
Cancelable No
Context Info submission-body (nodeset): A document element node with a QName of submission-body. The node initially contains an empty string. Event handlers can write data into the node. If the string value of this node is non-empty, then the string value is used in the submission in lieu of the default instance data serialization.

The default action for this event results in the following:

  • If the event context submission-body property string is empty, then no operation is performed so that the submission will use the normal serialization data (see the xforms-submit event). Otherwise, if the event context submission-body property string is non-empty, then the serialization data for the submission is set to be the content of the submission-body string.

Example

XML CopyCode image Copy Code
<xforms:action ev:event="xforms-submit-serialize" ev:observer="submission">
   <xforms:message level="modal">xforms-submit-serialize</xforms:message>
</xforms:action>

Specification

Link to the XForms specification: the xforms-submit-serialize event.