You need to sign in to do that
Don't have an account?
Lakshmi S
How to clone the record using custom visualforce pages?
Hi Team,
I have created custom detail page using visualforce pages, How to clone the record using Visualforce pages ?
Thanks,
Lakshmi.
I have created custom detail page using visualforce pages, How to clone the record using Visualforce pages ?
Thanks,
Lakshmi.
Please refer the below link,
https://developer.salesforce.com/forums/?id=906F0000000BWMkIAO
I think its works fine for you.
Thanks,
Saroja
SweetPotatoTec
1) https://help.salesforce.com/articleView?id=000227675&type=1
To accomplish this Task we have to do 3 things.
(1) Create a VF page with standard controller as lead and apex class as extension (2) Create a apex extension class.
============================= (3) Create a custom button on the Lead object which can be an onclick javascript button depending on your needs. Add that button in the layout.
Sample Javascript Button:
=====================
window.location.href = "/apex/customcloneLead?id={!Lead.Id}";
Note - you can modify the javascript according to the needs of your business use case.
Disclaimer: This is only a sample code and you can modify and use it on your discretion by testing the use case in your sandbox.
I got a issue with below code, If i click on clone the record automatically saved to db, with out clicking the save button.
My requirement is with out clicking the save button i don't want to save the record.
Please check my code and let me know , if any changes required in my code. Thanks
lakshmi