|
This post was updated on .
Hi,
I have an orbeon form which has custom button to submit and The user can submit it twice because there no spinner showing up when he submits and he has ample of time to click the button many times.Can we disable the the submit button when clicked
Visbility formula:xxf:instance('fr-form-instance')/*/status!='Submitted'
form xml:
<xf:trigger id="cps-submit-btn-control" bind="cps-submit-btn-bind">
<xf:label ref="$form-resources/cps-submit-btn/label"/>
<xf:hint ref="$form-resources/cps-submit-btn/hint"/>
<xf:alert ref="$fr-resources/detail/labels/alert"/>
</xf:trigger>
<xf:action ev:event="DOMActivate" ev:observer="cps-submit-btn-control">
</xf:action>
<xf:action xmlns:process="java:org.orbeon.oxf.fr.SimpleProcess" ev:event="DOMActivate"
ev:observer="cps-submit-btn-control"
type="xpath">
xxf:instance('fr-form-instance')/process:runProcessByName('oxf.fr.detail.process', 'send-CPS')
</xf:action>
Vesrion 4.6PE
|