You need to sign in to do that
Don't have an account?
DanteC
Redirect to a another Salesforce page from the Constructor
How to redirect to a another Salesforce page from the Constructor? Is there a sample code somewhere? Somehow, the setRedirect(true) does not work from the Constructor of the class.
I'm not sure if you can do that from a constructor since they do not have an explicit return type.
You can put action attribute on your apex:page to call a methond in your class that redirects.
VF Page:
Apex Class
All Answers
I'm not sure if you can do that from a constructor since they do not have an explicit return type.
You can put action attribute on your apex:page to call a methond in your class that redirects.
VF Page:
Apex Class