orbeon - How can I access the XML captured by a form I create in From Builder from JavaScript? -
with orbeon forms, created form in form builder. since orbeon forms uses xforms, data in form captured in xml document. document sent persistence api when saved, how can access before that, on browser, through javascript?
in form builder, edit source, , add following line inside
<fr:body>
element, before first<fr:section>
:<xf:output value="saxon:serialize(/*, 'xml')" id="my-xml" style="display: none"/>
in javascript, can access value of
my-xml
control added with:orbeon.xforms.document.getvalue('my-xml')
Comments
Post a Comment