xxf:modal and xf:submit doesn't work

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

xxf:modal and xf:submit doesn't work

ricetrac
Hello,

I try to use the properties xxf:modal on my submit button , but it doesn't work : user input is not blocked.

On a trigger it's ok, like this http://wiki.orbeon.com/forms/doc/developer-guide/xforms-controls/trigger-control#TOC-Modal-trigger-and-submit

My submit and trigger button:
<xf:submit submission="Rechercher" appearance="minimal" class="btn_rechercher" xxf:modal="true">
        <xf:label><xhtml:span> </xhtml:span>Rechercher</xf:label>
</xf:submit>
               
<xf:trigger appearance="minimal" class="btn_rechercher" xxf:modal="true">
        <xf:label><xhtml:span> </xhtml:span>Rechercher</xf:label>
        <xf:send ev:event="DOMActivate" submission="Rechercher"/>
</xf:trigger>

I use Orbeon 4.4.

Thank You.

Julien
Reply | Threaded
Open this post in threaded view
|

Re: xxf:modal and xf:submit doesn't work

Alessandro  Vernet
Administrator
Hi Julien,

Indeed, and this was super-simple to fix, so it is done, and will be in 4.9. But the fix is so simple that it should be apply to an earlier version, if it helps you. Thank you for letting us know about it. And for reference, the issue is:

https://github.com/orbeon/orbeon-forms/issues/2097

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: xxf:modal and xf:submit doesn't work

ricetrac
Thank You Alex, this fix works fine with orbeon 4.4.
I update the xforms-min.js file and it's ok.

Thank You.

Julien
Reply | Threaded
Open this post in threaded view
|

Re: xxf:modal and xf:submit doesn't work

Alessandro  Vernet
Administrator
Hi Julien,

Excellent, I am glad it works, and thanks for the update.

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet