3

An interesting question was asked about clearing the contents of a custom lookup field when URL hacking the clone button on an opportunity. The question was deleted by the asker, but the behavior is a little odd, so I thought it was worth reasking/answering.
Attempt: Use the Custom Field Id in the URL and set it equal to nothing.

Example: /{!Opportunity.Id}/e?clone=1&retURL=/{!Opportunity.Id}&CF00Nj0000003U70C= 

Result: When creating the record the field is blank if the user populates the field all is well in the world. If the user leaves the field blank the previous value reappears.

4

Solution: Similar to populating a custom lookup field using the URL hack, you need to set both the field label and it's value to the desired default, in this case nothing.

Example: /{!Opportunity.Id}/e?clone=1&retURL=/{!Opportunity.Id}&CF00Nj0000003U70C=&CF00Nj0000003U70C_lkid=

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.