function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
AvinAvin 

Issue in Overriding standard New Button

Hi,

 

In opportunity, I a have 3 record types. For one of the recordtype I want to prefill the Closedate.

So,  am trying to override the New Button.

As I have to select the record type also. So I am not skiping the select record type page while overriding the New standard button.

 

In the action method the return URL which I have mentioned is 

'/006/e?RecordType='+opp.recordtypeid+'&opp9=7/22/2013'

 

But the returned URL is

https://c.cs11.visual.force.com/apex/IPPOpportunity?retURL=%2F006%2Fo&RecordType=012G0000000wkAk&ent=Opportunity&save_new=1&sfdc.override=1

 

 

I am able to redirect to the standed creation page of opportunity. Please help me to resolve the issue.

 

Thanks,

 

Best Answer chosen by Admin (Salesforce Developers) 

All Answers

souvik9086souvik9086
This was selected as the best answer
AvinAvin

Hi Souvik,

 

Thanks..

 

I have used  the first link that you sent and I got the solution.

http://boards.developerforce.com/t5/Visualforce-Development/Override-New-for-Single-Record-Type/td-p...