The xforms-submit-done event

Release 2.0 - ...

Dispatched as an indication of: successful completion of a submission process.

Event Properties

Event Properties Value / Description
Target submission
Bubbles Yes
Cancelable No
Context Info
  • resource-uri (string) : The submission resource URI that succeeded (xsd:anyURI).
  • response-status-code (number) : The protocol return code of the success response, or NaN if the submission did not receive a success response.
  • response-headers (nodeset) : Zero or more elements, each one representing a content header in the success response received by the submission. The returned node-set is empty if the submission did not receive a response or if there were no headers. Each element has a local name of header with no namespace URI and two child elements, name and value, whose string contents are the name and value of the header, respectively.
  • response-reason-phrase (string) : The protocol response reason phrase of the success response. The string is empty if the submission did not receive a response or if the response did not contain a reason phrase..

The default action for this event results in the following:

  • None, notification event only.

Example

XML CopyCode image Copy Code
<xforms:submission id="submit" action="http://xformstest.org/cgi-bin/echo.sh" bind="year_bind" method="post" replace="none">
   <xforms:action ev:event="xforms-submit-done">
      <xforms:message level="modal">xforms-submit-done</xforms:message>
   </xforms:action>
</xforms:submission>

Specification

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