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
Lauren Hartley 9Lauren Hartley 9 

Custom clone button for Lightning

Can anyone help with the below please?

I managed to create a custom clone button in Classic on the opportunities object which changed the information in some of the fields when it was cloned (for example changed the sales stage from closed won to qualified). However, this doesn't work in Lightning. 

I then built an Apex class and visualforce page and have managed to get it to work in Lightning to bring accross the information in the fields stated in the class, however I am not sure how to amend it to pull accross different field values as mentioned above. Is this possible? 

Sorry I am not a developer and have very limited experience with Apex, thus any help would be greatly appreciated.