You need to sign in to do that
Don't have an account?
satakshi
Back button is not working on visualforce page
Hello,
I am writing a code whre i want to come back on previous page. but in my case back button is not working. can anyone please help me?
public pageReference CancelAction()
{
PageReference pr1 = new PageReference('/apex/SBAddQuestionPage' );
pr1.setRedirect(true);
return pr1;
}
<apex:commandButton value="Back" action="{!CancelAction}" styleClass="red-btn" style="margin-left: 113% !important; margin-top: -2% !important; font-weight: bold;"/>
Thanks & Regards,
Satakshi
I am writing a code whre i want to come back on previous page. but in my case back button is not working. can anyone please help me?
public pageReference CancelAction()
{
PageReference pr1 = new PageReference('/apex/SBAddQuestionPage' );
pr1.setRedirect(true);
return pr1;
}
<apex:commandButton value="Back" action="{!CancelAction}" styleClass="red-btn" style="margin-left: 113% !important; margin-top: -2% !important; font-weight: bold;"/>
Thanks & Regards,
Satakshi
Can you share your visualforce page code? It helps to solve your problem.
Regards,
Yogesh More
Salesforce Consultant || Salesforce Developer
more.yogesh422@gmail.com || +919096872010
www.yogeshmore.com || Skype:-yogesh.more44
Add Questions
You have used <apex:form > tag in your visualforce page. Add id attribute in form tag.
Ex: - <apex:form id=”frm”>
Then replace
To following
Regards,
Yogesh More
Salesforce Consultant || Salesforce Developer
more.yogesh422@gmail.com || +919096872010
www.yogeshmore.com || Skype:-yogesh.more44