HI,
Can anyone tell me how to bind the submission code below to the Send button
on a published form?
E.g. when I press the Send button it should trigger the submission code..
<xf:submission id="validation-submission"
ref="instance('user-info')"
resource="
http://localhost:62203/api/Values/"
method="post" replace="instance"
instance="validation-result">
<xf:delete ev:event="xforms-submit" ref="//@v:*"/>
<xf:action ev:event="xforms-submit-done">
<xf:insert ref="."
origin="instance('validation-result')/v:data/*"/>
<xf:setvalue iterate="//@v:alert" ref="."
value="concat(., ' (save again to revalidate)')"/>
<xf:dispatch name="fr-visit-all"
targetid="error-summary-incremental"/>
<xf:dispatch name="fr-visit-all"
targetid="error-summary"/>
<xf:refresh/>
<xf:dispatch name="fr-update" targetid="error-summary"/>
</xf:action>
</xf:submission>
--
View this message in context:
http://discuss.orbeon.com/How-to-trigger-the-external-validation-code-when-pressing-the-send-button-tp4657597.html
Sent from the Orbeon Forms community mailing list mailing list archive at Nabble.com.