You need to sign in to do that
Don't have an account?
Chamil Madusanka
Custom URL for retURL parameter
Hi All,
Can we use our own URL for retURL parameter? I tried to use one of my page's URL. But It is not working. Is there any specific way to use such URL in retURL parameter?
Following example URL is of enter New Employee (Employee__c object)
https://ap1.salesforce.com/a07/e?retURL=%2Fa07%2Fo
custom page URL
https://c.ap1.visual.force.com/apex/InlineContact
Thanks in Advance
--
Chamil Madusanka
There is a solution: use saveURL , as in
Pierre Eymard
pierre.eymard@saaspoint.com
Saaspoint
London, UK
All Answers
from where you want to return to your custom page?if it is apex you use pagereference.. if it is u can do this by javascript also....
Hi,
I going to use in markup.
Like
I want to use custom page in retURL. How to do that?
--
Chamil Madusanka
retURL is completely ignored for new record pages. That's probably why you are having a problem getting it to work.
is there a solution to this? How can we override this and have the user return to the original page?
Example: I have a VF page where a user can click different links, create different new objects of different types, then go back to the original VF page.
The solution is... there is no solution. The functionality is hardcoded into the platform. If you want to use your own retURL, you'd have to create a custom new record page (Visualforce) to override the behavior.
There is a solution: use saveURL , as in
Pierre Eymard
pierre.eymard@saaspoint.com
Saaspoint
London, UK
Pierre, you are the man! Thank you! I hope everyone scrolls past SFDCFox's incorrect reply that there is no solution, and the author marks your answer as the correct one.
Scott,
No need to be so harsh. After all, I can't know everything about sfdc (nor do I claim to). Since Pierre is indeed correct, I've updated the solution accordingly. Well done, Pierre.
may i know how can i extend this code to get back to the VF where i had come from?
<apex:commandbutton action="{!URLFOR($Action.DisplayCheck__c.New,null,[CF00N20000009H4jV=vname,CF00N20000009H4jV_lkid=vname],true)}" />