+ Start a Discussion
JimPDXJimPDX 

Back to prior page

My users LOVE our new custom UI we just rolled out (a custom Lead UI with embedded tabs and extra logic, etc.) but the one thing they miss is the "<- Back to (prior)" which they often use to go back to the Lead list view. We can't simply do a javascript back because we reload the page when it saves, etc. Any advice? I searched the VF docs for a simple call which I could use to replicate this handy feature of the native page layouts.

 

Help appreciated. 

Message Edited by jimson on 09-09-2009 01:50 PM
Sam.arjSam.arj

From your description I can tell that you have customized the lead detail page.

 

I believe you should add the manually to your VF page using an outputLink component.

 

At first glance it seems that you need a logic set for this outputLink component to see if there were any "retUrl" parameter passed to you page and then return the user to that URL and if not just return the user to a predefined url (maybe Leads Tab page).

 

I hope this helps.