Customized Clone Button or conditional Clone button using URL Hack #inSalesforce

Customized Clone Button or conditional Clone button using URL Hack #inSalesforce


Steps: Setup > Object Manager > object like Opportunity > Buttons, Links, and Actions > New Button or Link > Name it (content source - URL, select the display type like detail page button)

Use the following in content : /lightning/o/Opportunity/new?defaultFieldValues=OwnerId={!Account.OwnerId},StageName=Prospecting,Discount_Percent__c=10


Note: Make sure you add the new button in the correct layout like its shown in the visual.

Test it.



Comments