+ Start a Discussion
Anto HotelbedsAnto Hotelbeds 

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



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:




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:




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.