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
SaurabhRawaneSaurabhRawane 

Over-riding of NEW Button with two S-controls depending on Record Types

Refering this link http://wiki.apexdevnet.com/index.php/Avoid_Creation_of_Duplicate_Account_Names can we have different S-controls running for different record type.
 
My need is having an New Button overided for one record type and a normal Salesforce new Entity Page for another record type.
 
Can there be a way to achieve this/Some work arnd will also do.?
 
Rgds,
Saurabh Rawane
SteveBowerSteveBower

I don't think you can do this through configuration,  but you can certainly write one s-control that first puts up a picklist asking what record type you wish to create, and upon selection creates a record of the proper type and then either brings you to the edit screen for that record, or calls a second stored procedure to do further processing.

Best, Steve.