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
sam_Adminsam_Admin 

Blank out lookup fields for clone button

I have custom clone button on Opp detail page , it works fine but iam trying to blank out couple of lookup fields but it seems to be not working i still see the data getting carried over for these fields, here is my code. Highlighted in bold are my lookup fields, when i click on clone i don't see the data on these fields but when i hit save i see the data

/{!Opportunity.Id}/e?clone=1&retURL=/{!Opportunity.Id}&&opp7=0&00N30000001AGiT=&00N40000001qg3R=&CF00N40000001VCp7=&CF00N40000002FC8Y=
Best Answer chosen by sam_Admin
BalajiRanganathanBalajiRanganathan
you need to have both 
CF00N40000001VCp7=&CF00N40000001VCp7_lkid=&CF00N40000002FC8Y&CF00N40000002FC8Y_lkid=



 

All Answers

BalajiRanganathanBalajiRanganathan
your resetting only the name of the lookup that is displayed.
you also need to have CF00N40000001VCp7_lkid=&CF00N40000002FC8Y_lkid=
sam_Adminsam_Admin
I ecen tried that but still those fields get carried over
/{!Opportunity.Id}/e?clone=1&retURL=/{!Opportunity.Id}&&opp7=0&00N30000001AGiT=&00N40000001qg3R=&CF00N40000001VCp7_lkid=&CF00N40000002FC8Y_lkid=
 
BalajiRanganathanBalajiRanganathan
you need to have both 
CF00N40000001VCp7=&CF00N40000001VCp7_lkid=&CF00N40000002FC8Y&CF00N40000002FC8Y_lkid=



 
This was selected as the best answer
sam_Adminsam_Admin
Thank You it worked