Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a button on my vfpage that opens New Account Standard page. After Save or cancel its redirecting to home tab but I want to redirect to my vf page. How can I set retUrl of my VF Page in the Pagereference. Or if there is another way?

share|improve this question

You need to set the 'retURL' parameter.

For example:

'/001/e?retURL=%2Fapex%2FMyVFPage%2F'

which will return the user to /apex/MyVFPage/

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.