javascript - Orbeon forms - how to change default behaviour of Orbeon Action -
currently in orbeon forms, when define orbeon action (for example) react value being changed on form, can specify service action call while providing input parameters. also, can specify want service response , how want use data received, e.g. maybe populate other form field.
i have situation orbeon forms used part of hybris commerce suite, , need trigger service call after fields change, perform logic on server-side , reload original page (where form located). since orbeon builder doesn't offer me functionality, can give me hints/inputs of how can achieved?
in other words, can override default orbeon builder functionality let me reload page when response received server? if using regular html forms js/jquery wouldn't issue, i'm not sure how orbeon handles this.
thanks in advance
assuming you're using form builder services , actions, plugin own javascript after service ran, in form builder, edit source of form, , add following before </xf:model>
:
<xxf:script observer="my-service-submission" ev:event="xforms-submit-done">alert('gaga');</xxf:script>.
in observer
attribute, replace my-service
name gave service (keeping -submission
suffix). , of course, replace alert('gaga')
actual javascript code you'd run.
Comments
Post a Comment