0

I am creating a button to clone a contact record, however I don't want to clone the email field, therefore I use the following syntax:

/{!Contact.Id}/e?clone=1&retURL=%2F{!Contact.Id}&Email=&account={!Account.Id}

Yet, when I clone the contact the email is populated.

  • Try this/{!Contact.Id}/e?clone=1&retURL=%2F{!Contact.Id}&Email=''&account={!Account.Id} – Suresh Apr 10 '15 at 15:46
2

The parameter to pass for the Email field is con15. I use Chrome to inspect the element of the field I want to pass through with a URL hack and then look at the ID.

/{!Contact.Id}/e?clone=1&retURL=%2F{!Contact.Id}&con15=

  • I guess one of the conNN fields refers to HasOptedOutOfEmail field right? – Bartley Apr 10 '15 at 16:09
  • any idea what stops a custom field from being set to null? – Bartley Apr 10 '15 at 16:18
  • 1
    con23 looks like the opt out of email field. Custom fields also have IDs that you can use to set values, you'd need to use Chrome to inspect the inputs and get the Id. – Daniel Hoechst Apr 10 '15 at 16:23
  • Thx Daniel, how can I use Chrome to inspect? – Bartley Apr 14 '15 at 14:23
  • Just right click on the field in edit mode and select Inspect Element. – Daniel Hoechst Apr 14 '15 at 14:26

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.