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
DoubleTDoubleT 

What's a better button? VisualFlow, VisualForce, or S-Control

I'm trying to add a custom 'Create New' button to a related list that once clicked creates a new record for the associated custom object.    The catch is the newly created record must be of a specific record type based upon the record type of the current object/record.

 

So, if the Opportunity RecordType = "Time Travel Engine" the "Create New" button on the associated custom object's related list (Proposals) should create a new Proposal record of record type "Time Travel Engine" as well.

 

Does anyone have thought around the best way to accomplish this? 

 

I had started a simple s-control that passed the parameters of the current record to the new record, the problem came when I found we had a many to one scenario.  There were many Opportunity record types that needed to be associated with one specific Proposal record type, then there were another group of Opportunity record types that needed to be associated with another Proposal record type.

 

Any help would be greatly, GREATLY appreciated!