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
cignuscignus 

Cloning standard contact edit page in VF page

Hi

 

I need add some functionality to contact page. I want a copy of contact edit page to add  a controller extension. Has anyone done that before?

I can add all the fields to a VF page but I want the page look exactly like standard contact page.

 

Behzad

bob_buzzardbob_buzzard

You should be able to make the page look exactly like the standard edit page, but it will be decoupled from that page. So if someone changes the standard edit page layout your visualforce page won't match it any more.

cignuscignus

Yes, I know that. I don't like this solution but I have to do it. If there was something like <apex:detail> which could include the edit page in another page I would use that. And by the way, is it possible to change the edit page layout, other than adding fields to object itself?

bob_buzzardbob_buzzard

The edit page layout is essentially the view page layout minus any non-editable fields (and potentially any sections marked not to show on edit).  You can't maintain it independently of the view though.