+ Start a Discussion

Going to Specific New Page For Record Type


I've been working on this off and on for a while in one way or another, and perhaps this approach will get me closer.

I'd like to link to the standard new/edit page for a brand new object for a record type.  I've got the record type.  I don't have a new record yet, and it certainly hasn't been written to the database -- and because of this, there isn't a record id, so urlFor($Action.Foo__c.New, Foo__c.id,NULL,true) wouldn't work -- because there isn't an id.

Any ideas how I might be able to do this?

Hi Michael,

  You can try like this, I don't know whether it is workable or not?
  I am just giving a suggestion.

  You create one page with select list contains the recordtypes values and make the look and feel of salesforce and place two buttons on them continue and cancel.

 On click of continue, you just take the value from the controller what user selected in the page, based upon that value you direct that user to the required page, while saving also you can give recordtype based upon the select list value.

All the best.