You can add the nooverride
parameter to the page to get back to the normal page. Using your example URL:
https://na15.salesforce.com/500/e?nooverride=1&00Ni000000BGRVE=Communications&00Ni000000BGtUJ=Survey&00Ni000000BH0li=General%20Questions&cas8=Low&cas7=Closed&retURL=%2F500%2Fo
If you are using URLFOR
, you can also specify TRUE as the fourth parameter to include the nooverride
parameter. If you are using a PageReference
, you can add it as a parameter:
ref.getParameters().put('nooverride','1');
The value doesn't matter, by the way-- it doesn't have to be 1. It's just a convention that most developers use from what I've observed (because salesforce.com themselves use that value, and people copy examples).
URLFOR
has an optional fourth parameter that you can use. This forces the correct parameter for overriding any button override and showing the standard page. Here's an example that uses that (from the comments):
{!URLFOR($Action.Case.NewCase,null,['00Ni000000BGRVE'='Benefits','00Ni000000BGtUJ'='401K','00Ni000000BH0li'='General Questions','cas8'='High','cas7'='Open'],true)}
You can use general formula functions inside the third parameter to include things like TODAY()
or BR()
. Text concatenation should use the salesforce.com formula syntax: 'Edit ' & Name
might render as "Edit John Doe".
Best Answer
If you are using a custom visualforce page in redirect URL then simply leverage parameters as given below:
New Button URL:
Actual link will be:
Now you can leverage parameter name "masterId" to fill in the Visualforce page input field.
If you are trying to redirect to a page which don;t have controller you can do it like:
New Button URL:
Actual link will be shown as: