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
samasama 

how to create custom clone button for custom objects

Hi,

i have created clone custom button between two custom objects. and am able  to redirect the page from one to another object. but i couldn't display the cloned field value from object1 into the standard field of object2.


All my requirment is i wanted to fetch standard field value from object1 and automatically display it into the standard field of object2 when clicking on the button.

is it possible?. can anybody help me on this?


Thanks for reading this.
Bhawani SharmaBhawani Sharma
Get the fields ids from object 2 user interface by doing inspect element. Set these parameters in URL when navigating to the page.
Ankit AroraAnkit Arora
As Bhawani suggested, you can do the inspect element and get the ID of the standard fields and then pass the values of rec one alond with the ID in uRL for second record, but are you trying yo copy fields like createdBy, LastModifiedBy etc? In that it's not possible.