Take the 2-minute tour ×
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.

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,c.id)}" target="_blank">Update Meeting</apex:outputLink></apex:column>

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

       <
    </apex:pageBlockTable>
  </apex:pageBlock>
</apex:page>

Thanks!

share|improve this question

1 Answer 1

up vote 7 down vote accepted

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

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

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

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

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.