Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. Join them; it only takes a minute:

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 visualforce page displaying a list of Event objects that need users to update. I have an 'Update link' that takes them to the edit screen for the Event, but upon Save, it brings up the list page. I want to take them to their home page, where this list VF page is nested.

<apex:page sidebar="false" showHeader="fale" standardController="User" extensions="UsersEventsExt2">

  <apex:pageBlock title="Meetings to Update">
    <apex:pageBlockTable value="{!Events}" var="c">

      <apex:column headerValue="Click to Update"><apex:outputLink value="{!URLFOR($Action.Event.Edit,}" target="_blank">Update Meeting</apex:outputLink></apex:column>

       <apex:column headerValue="Subject"><apex:outputLink value="{!URLFOR($Action.Event.View,}" target="_blank">{!c.subject}</apex:outputLink></apex:column>



share|improve this question
up vote 8 down vote accepted

When saving a new record, you can use the saveURL parameter:

{!URLFOR($Action.Contact.NewContact,, ['saveURL'='/home/home.jsp'])}

When editing an existing record, you can use the retURL parameter:

{!URLFOR($Action.Event.Edit,, ['retURL'='/home/home.jsp'])}
share|improve this answer
thanks very much – jaw999 Feb 11 '14 at 16:17

Your Answer


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.