My XPage creates a new document by default, and redirects to a new page when it passes validation.
If the user submits a page and some fields fail validation then error messages are displayed in Message controls as expected. If the user corrects the errors and the page then passes validation it redirects to the ThankYou.xsp page as expected.
However, if they then press the browser Back button they return to the XPage and see the validation errors again.
Is there a method to avoid this behaviour and, instead, reset the XPage when submitted successfully so that a fresh page is displayed if Back is pressed?
Here is the Submit button settings...
<xp:eventHandler event="onclick" submit="true" refreshMode="complete" immediate="false" save="true" id="eventHandler1"
>
The Navigation...
<xp:this.navigationRules
>
<xp:navigationRule outcome="xsp-success" viewId="/ThankYou.xsp"
>
</xp:navigationRule
>
</xp:this.navigationRules
>