Did you put in a value on your checkbox? e.g. 1 ?
A checkbox with no value does nothing.
Thread Starter
Brode
(@techonespiritinterfaithorg)
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) ?
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://help.salesforce.com/HTViewSolution?id=000004203&language=en_US
Thread Starter
Brode
(@techonespiritinterfaithorg)
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!