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
DAC11DAC11 

Dynamically change Page layout of a task in edit mode using visual force?

Hi there,

I was wondering if it is possible to change the page layout of a TASK page using visualforce when in edit mode. I have 3 task record types and wanted to change to their layouts based on a drop down which corresponds to a record type;

General Task
Order Call task
Credit Control Task

Each of these record types has their own page layout and so I wanted to change these dynamically in edit mode based on what is selected in the drop down.

I can see there is some code for this at this link, but it refers to the opportunity;
http://wiki.developerforce.com/page/Visualforce_DynamicEditPage

I had some trouble working with tasks and visual force in the past wondered if anyone knew if this could work with a task also.

Many Thanks!