The xforms-submit event

Release 2.0 - ...

Dispatched in response to: a user request to submit a form.

Event Properties

Event Properties Value / Description
Target submission
Bubbles Yes
Cancelable Yes
Context Info None

The default action for this event results in the following (summarized, see the specification for detailed information):

  • The data model is updated.
  • The binding attributes of the submission element are evaluated.
  • The indicated node and all nodes for which it is an ancestor are selected. When applicable, non-relevant nodes are removed.
  • When applicable, validity checks are performed.
  • The submission method is determined.
  • The submission resource is determined.
  • The submission data serialization is determined and the instance data is serialized accordingly.
  • The submission headers are determined.
  • Finally, the submission is performed based on the rules/methods determined within the previous steps.

Example

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

Specification

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