Hi,
I want to prevent users from resubmitting the same form after using the back-button of the browser. I would like to simply clear the form and redirect to the first edit page (edit-1) after the back-button is used from the confirmation page (the page after the submit). To test this, I was trying to do a redirect after the xforms-ready event, by putting this code in the model:
<xforms:action ev:event="xforms-ready">
<xforms:setvalue ref="instance('main-instance')/action">edit-1</xforms:setvalue>
<xforms:send submission="go-back"/>
</xforms:action>The idea is that directly when loading this page, there is a redirect to the first edit-page. Then I can put an if-check on the action and only fire it when the back button is used to return to this page. However, the code above doesn't work (although <xforms:send submission="go-back"/> works when triggered by a button). I'm a bit confused, should this work?
Regards,
Wouter
--
You receive this message as a subscriber of the
[hidden email] mailing list.
To unsubscribe: mailto:
[hidden email]
For general help: mailto:
[hidden email]?subject=help
OW2 mailing lists service home page:
http://www.ow2.org/wws