+ Start a Discussion
MrithulaMrithula 

how to avoid "confirm form re-submission"

hi,

i have a static page(say demo) with <apex:outputLink value="{!URLFOR('pagexyz')}"> that navigates to page xyz.

from xyz while iam clicking back button in browser it ask for  "confirm form re-submission" .

i need to come back to demo page onclicking back button .

iam also tried cache="false", still problem exists.

how to avoid this issue..?
Vamsi KrishnaVamsi Krishna
Mrithula,
its not a salesforce or visualforce message.. its a standard browser warning message for all pages with forms that uses POST to submit data to server.. if the user is trying to refresh or hit back/forward that causes the form to be resubmitted, the browser gives this warning & asks for confirmation to resubmit the data..

here is a more detailed explanation
http://stackoverflow.com/questions/6833914/how-to-not-prevent-the-confirm-form-resubmission-dialog

and there might be some settings (different for Chrome/Firefox/IE).. but not sure if it will fix the issue..
Chrome - https://productforums.google.com/forum/#!topic/chrome/bUNejC0hF7U

another solution is to open the link in a new tab like below.. so you can access the first page without back button..
<apex:outputLink value="{!URLFOR('pagexyz')}" target="_blank">