You need to sign in to do that
Don't have an account?
benwrigley
How to replicate 'Clone' button and put user in edit mode
Hi All,
I want to replicate the Clone button as much as possible but with a few changes and I'm not sure how salesforce have done it.
When you click clone now you are taken to a copy of the object in edit mode. Has the copy actually been created at that point and we are just editing or are we just in a 'new' object window?
Also some of the Opportunity custom fields I have made read-only for certain users but I've noticed that clicking clone will still populate those fields in the new object. When I tried to replicate that behaviour I am told that I don't have permission to edit those fields. How does the default Clone button get around that issue?
TIA
Ben
I want to replicate the Clone button as much as possible but with a few changes and I'm not sure how salesforce have done it.
When you click clone now you are taken to a copy of the object in edit mode. Has the copy actually been created at that point and we are just editing or are we just in a 'new' object window?
Also some of the Opportunity custom fields I have made read-only for certain users but I've noticed that clicking clone will still populate those fields in the new object. When I tried to replicate that behaviour I am told that I don't have permission to edit those fields. How does the default Clone button get around that issue?
TIA
Ben
Hope this helps.
I want to acheive exactly what the clone button does now, however, I want to be able to choose which fields get populated in the copy. To do this I need to copy the clone functionality which I am not sure how to do.
Any ideas?
I know this thread is old, so forgive me. I'd like more information on passing parameters. Can you be more specific on what is "con5" and "con6"? Is that a reserved phrase of some sort?
Thanks for your patience!
Amber
Ok, I figured out the cas5 & cas6 (http://salesforce.phollaio.com/tag/structure/) but now I need to know how to specify the record type.
BTW, I'm thinking that clone isn't really what I want to do.
Thanks in advance for any help or advice!
Amber