I have Task object with few record types. I created a custom List button on the task object and placed it on the related list of few objects. When i click this button i expected that it would prompt me to select a record type and then take me to the "New Task" page. But when i click on the button, it took me directly to the "New Task" page and the default record type was selected.
The code for the custom button is as below:
var url = '{!URLFOR($Action.Activity.NewTask)}';
window.location.href = url;
Does $Action.New not prompt to user to select Record Type?
var url = '{!URLFOR($Action.Activity.NewTask)}'; window.location.href = url;