You can do it using a xf:dialog with a xf:submit labeled "Yes" and a xf:trigger
labeled "No" that closes the dialog.
Below is the code:
<xf:trigger>
<xf:label>Save</xf:label>
<xf:action ev:event="DOMActivate">
<xf:show dialog="confirm"/>
</xf:action>
</xf:trigger>
<xf:dialog id="confirm">
<span>Are you sure?</span>
<xf:submit submission="dopost">
<xf:label>Yes</xf:label>
</xf:submit>
<xf:trigger>
<xf:label>No</xf:label>
<xf:action ev:event="DOMActivate">
<xf:hide dialog="confirm"/>
</xf:action>
</xf:trigger>
</xf:dialog>
William David Velásquez
Director de I+D
Visión Tecnológica S.A.S.
Tel: (4) 444 7292
Cel: 313 743 54 11
[email protected]
________________________________________
De: peter winstanley [[email protected]]
Enviado: miércoles, 08 de mayo de 2013 11:53 a.m.
Para: XSLTForms support
Asunto: [Xsltforms-support] Models and best practice for submission
confirmation
Hello List
Are there any good examples illustrating the best way to implement a
confirmation dialogue for a submission event (asking the user if they want to
continue, and reverting to the form if they don't)?
Many thanks
Peter
____________________________________________________________
FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on your
desktop!
Check it out at http://www.inbox.com/marineaquarium
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and
their applications. This 200-page book is written by three acclaimed
leaders in the field. The early access version is available now.
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Xsltforms-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xsltforms-support
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and
their applications. This 200-page book is written by three acclaimed
leaders in the field. The early access version is available now.
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Xsltforms-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xsltforms-support