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
Shiva VenuShiva Venu 

Copy owner to lookup used field while create campaign

Hi All,

I have a default standard owner field on the campaign page, now added a new campaign requester field (lookup user) and renaming standard owner field to a campaign created by. Whenever I click new campaign I want to copy the owner to campaign requester by default and then the user can go to requester lookup field and change if required. Please suggest if this can be done. I need it when clicked new not after saving the record.

Thanks
Shiva
VIVEK KUMAR 105VIVEK KUMAR 105
Hi Shiva, For this you'll have to override the standard 'New' button with a visualforce page and then move to the standard page directly from vfpage using URL hacking. This way you can pass whatever value you want to whatever field on the standard creation page.