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

help on custom button and record type

I would like to be able to have a button that creates a new task of one record type and another button that creates a task of another record type. I'm using it as a sort of clone of the standard "log a call" button. I would like users two buttons they can click rather than one button and then selecting the record type.


I founc the button hack using a URL reference, but for some reason this is really much slower than loading a VF page. Is there any way to pass the record type through a button without this URL button override?


Thanks for any help!

Rahul SharmaRahul Sharma



You could use two custom buttons for creating task with 2 different record types.

They should have button type as url, over there pass the partial url of "log a call" button and append an extrra parameter for passing appropriate recordtype.

For example:


//replace XX with required recordtype Id