xforms:sendAdded by IBM on October 10, 2012 | Version 1 (Original)
|Triggers an XForms submission. The submission must already be defined in the XForms model.
Table 1. send parameters
<xforms:send event submission="submission"/>
|event||string||The XForms event that triggers the action.|
|submission||string||The ID of the submission you want to trigger. You can include multiple submission attributes.|
Example The following example shows two <xforms:submission> elements. When triggered, the submission attempts to post the data for a purchase order to a cgi script for processing. If an error is encountered, the xforms:send action is triggered. This starts a second submission, called "error" which submits to a different server (possibly a fall-back server).
<xforms:submission id="S" method="post" includenamespaceprefixes=""
<xforms:send ev:event="xforms-submit-error" submission="error"/>
<xforms:submission id="error" method="post" includenamespaceprefixes=""
- You can also use the xforms:submit option to initiate a send action.