xforms:submit (option)Added by IBM on August 8, 2013 | Version 1 (Original)
|Sets a button or action item to perform an XForms submission. The rules for the submission are defined in the XForms data model. The xforms:submit links a button to a particular set of rules, which are then carried out when the button is clicked.
For more information about XForms submissions, see xforms:submission.
Table 1. xforms submit parameters
|ID||string||the ID of the xforms:submission you want to use. This is declared in the data model.|
|label text||string||sets the text that the button containing the submit displays, as well as the default accessibility message for that button. If the button also has value or acclabel options, they will override this setting.|
|Alert, Hint, Help Setting||metadata||see Metadata sub-options.|
Available in action, button
Example The following example shows a button that is linked to the completeSubmit submission rules in the XForms data model. This button also relies on the xforms:label to set the text and accessibility message for the button.
<xforms:label>Submit All Data</xforms:label>
- You can also trigger submissions using the xforms:send action. For more information, refer to xforms:send.
- XForms submissions no longer clears the dirtyflag. If necessary, the save prompt can be disabled by using a compute to set the dirtyflag to off.