0

I have written following code to override the new page of lead form. Functionality working absolutely fine. When i click on new button and then click on cancel it will not redirect me to the tab view.

<apex:page standardController="Lead" 
  action="{!URLFOR($Action.Lead.New,$ObjectType.Lead,[lea3=$User.companyname],true)}">
</apex:page>
0

you can use

 <apex:page standardController="Lead" 
  action="{!URLFOR($Action.Lead.New,$ObjectType.Lead,[lea3=$User.companyname,retURL=$ObjectType.Lead.keyprefix],true)}">
</apex:page>

Keyprefix will return you to the view page

Thanks Ankush

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.