<xh:td>
<xf:trigger id="complete-appraisal-confirm-control" bind="complete-appraisal-confirm-bind">
<xf:label ref="$form-resources/complete-appraisal-confirm/label"/>
<xf:hint ref="$form-resources/complete-appraisal-confirm/hint"/>
<xf:alert ref="$fr-resources/detail/labels/alert"/>
<xf:action ev:event="DOMActivate">
<xf:setvalue bind="status-bind" value="'sent for review'"/>
<xf:setvalue bind="show-complete-section-bind" value="'false'"/>
<xf:send submission="create-instance"/>
</xf:action>
</xf:trigger>
</xh:td>
<xf:submission id="create-instance" method="put" instance="fr-form-instance"
replace="instance"
serialization="application/xml"
validate="true"
relevant="true"
resource="http://localhost:8040/orbeonapi/crud/erdf/appraisal/data/{xxf:instance('fr-parameters-instance')/document}/data.xml">
<xf:header combine="replace">
<xf:name>Accept</xf:name>
<xf:value>application/xml</xf:value>
</xf:header>
<xf:action ev:event="xforms-submit-error">
<xf:message level="modal">
<xf:output value="'There are validation errors. Please check your selections and entries, and retry once all fields have been filled out.'"/>
</xf:message>
</xf:action>
<xf:action ev:event="xforms-submit-done">
<xf:setvalue ref="xxf:instance('fr-persistence-instance')/data-safe-override">true</xf:setvalue>
<xf:send submission="wf-submit-appraisal"/>
<xf:load resource="/esif-web/appraisal/{instance('fr-form-instance')//*:status}/for/{xxf:instance('fr-form-instance')/*:uids/*:application/string()}"/>
<!--<xf:load resource="/esif-web/applications/dashboard"/>-->
</xf:action>
</xf:submission>
We could have a validation error as a pop up message, but we would like to have the red validation alerts to be displayed as well.
How can we display the validation errors as the red alerts at the bottom of screen which is like the default save or submit button from Orbeon form builder and runner?
Could you please advise?
Thanks,
Chunyu
--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to orbeon+un...@googlegroups.com.
To post to this group, send email to orb...@googlegroups.com.