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

Need Help: Issue with opportunity clone button

Hi , 

I have created a button on opportunity called clone1. This button works same like CLONE button. It clones the opportunity along with the opportunity line items. I want to control the behiour of cstom field (xyz__c) which is a checkbox on the opportunty line item. whenever user clones the opportunity with product , the xyz__c field on opportunity line item should always be set to False.  Below is the custom button. But for some reason , I am not able to set the status of this field to FALSE.

{!URLFOR($Action.Opportunity.Clone, Opportunity.Id,
You can't set the value for any field on the line items while cloning. You would only be able to affect fields on the opportunity itself.