Title: Email Opt Out?
Last modified: August 21, 2016

---

# Email Opt Out?

 *  Resolved [Brode](https://wordpress.org/support/users/techonespiritinterfaithorg/)
 * (@techonespiritinterfaithorg)
 * [12 years ago](https://wordpress.org/support/topic/email-opt-out/)
 * Thank you for this wonderful plugin! What a difference not to have to hard-code
   these forms from now on.
 * Is there a way to include the Email Opt Out field so that we may capture people’s
   mass mail contact preferences? I’ve tried adding the API name for the field, 
   HasOptedOutOfEmail but opting out on the webform does not pass through to the
   Lead record in salesforce.
 * Thanks in advance.
 * [https://wordpress.org/plugins/salesforce-wordpress-to-lead/](https://wordpress.org/plugins/salesforce-wordpress-to-lead/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Nick Ciske](https://wordpress.org/support/users/nickciske/)
 * (@nickciske)
 * [12 years ago](https://wordpress.org/support/topic/email-opt-out/#post-4916234)
 * Did you put in a value on your checkbox? e.g. 1 ?
 * A checkbox with no value does nothing.
 *  Thread Starter [Brode](https://wordpress.org/support/users/techonespiritinterfaithorg/)
 * (@techonespiritinterfaithorg)
 * [12 years ago](https://wordpress.org/support/topic/email-opt-out/#post-4916317)
 * Thanks Nick. I tried adding 1 to the value field of the checkbox (as well as ‘
   TRUE’). Neither worked.
 * Email Opt Out is a standard Salesforce field on the Lead record; am I only allowed
   to add custom fields (ending with __c) ?
 *  Plugin Author [Nick Ciske](https://wordpress.org/support/users/nickciske/)
 * (@nickciske)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/email-opt-out/#post-4916408)
 * Any “lead” field should work as long as it’s named correctly and has the value
   SF expects.
 * Here’s the code as output by the SF form builder:
 * `<label for="emailOptOut">Email Opt Out</label><input id="emailOptOut" name="
   emailOptOut" type="checkbox" value="1" /><br>`
 * As long as your field name is **emailOptOut** (capitalization is important) and
   your checkbox has a value of 1, it should get transferred to SF like any other
   field.
 * But, this particular field has default security settings that make it hidden 
   from most users, so you may need to adjust those to even see the field in the
   lead detail view (even after your edit the layout to add it).
 * See:
    [https://success.salesforce.com/answers?id=90630000000gkL4AAI](https://success.salesforce.com/answers?id=90630000000gkL4AAI)
 * [https://help.salesforce.com/HTViewSolution?id=000004203&language=en_US](https://help.salesforce.com/HTViewSolution?id=000004203&language=en_US)
 *  Thread Starter [Brode](https://wordpress.org/support/users/techonespiritinterfaithorg/)
 * (@techonespiritinterfaithorg)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/email-opt-out/#post-4916430)
 * That did it Nick. The name I was using came from the Customize>Leads>Fields interface
   in Salesforce, but the one you presented (from the SF Form builder) works great!
 * Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Email Opt Out?’ is closed to new replies.

 * ![](https://ps.w.org/salesforce-wordpress-to-lead/assets/icon-256x256.png?rev
   =2316786)
 * [Brilliant Web-to-Lead for Salesforce](https://wordpress.org/plugins/salesforce-wordpress-to-lead/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/salesforce-wordpress-to-lead/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/salesforce-wordpress-to-lead/)
 * [Active Topics](https://wordpress.org/support/plugin/salesforce-wordpress-to-lead/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/salesforce-wordpress-to-lead/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/salesforce-wordpress-to-lead/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Brode](https://wordpress.org/support/users/techonespiritinterfaithorg/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/email-opt-out/#post-4916430)
 * Status: resolved