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
Anto HotelbedsAnto Hotelbeds 

New lead creation (visualforce page), record type and user profile

Hi,

 

I have a user that just has one lead record type assinged to him.

 

I have also overwritten the new lead button with the visualforce page LeadCreation_Commercial Information without skiping the recordtype selection screen.

 

If a profile has more than one record type I dont have any problem and after the user selects the record type that wants to create, I am correctly redirected to the url:

 

https://c.eu1.visual.force.com/apex/LeadCreation_CommercialInformation?RecordType=012D000000031xH&retURL=%2F00Q%2Fo&sfdc.override=1&save_new=1&ent=Lead

 

But when a user has just one record type assinged to his profile, when clicking on create new I just get a blank page and the followint URL that doesnt indicate any record type:

 

https://c.eu1.visual.force.com/apex/LeadCreation_CommercialInformation?retURL=%2F00Q%2Fo&sfdc.override=1&save_new=1

 

Shouldnt the recordtype be in the URL always by default?Is this a problem with my code or a bug?

 

I wasnt expecting this error at all. Thanks a lot for your help.

 

Regards,

 

Antonio