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
Rafael Motta 9Rafael Motta 9 

copy standar file to Visualforce page

Hi. can you  help me?, cos  I need to double or clone a layout and  copy almost everything  record fields, I did this, but when I check the double layout, I notice than the field  Owner, shows my name, but I need to show The same owner than the original  layout, For Example:

the original  layout owner  is "Randalp Ortega", when I clone that layout. The  owner Field Show "Rafael Motta" (me).

What I´m doing bad

I attach the object  and  the apex  code that I use.

regards
User-added image
this  is my apex code
User-added image