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
cl0s3rcl0s3r 

Opportunity Clone Override

What is the best way to override the clone button of the Opp.  I have a custom checkbox field on the Opp Line Item that I need set to false when cloned?

JitendraJitendra

Hi,

You need to create custom code for this.

Create extension class for opportunity and one VF page.

Create Custom button and invoke the VF page.

 

In controller, right down whatever your logic.

EnthEnth

There are apps on the AppExchange for this, EnthClone being one of them for this specific purpose: EnthClone