> For the complete documentation index, see [llms.txt](https://help.checkoutchamp.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.checkoutchamp.com/funnel-builder/creating-and-editing-funnels-pages/funnel-visualizer-and-page-builder/page-builder-2.0/page-building-tips/creating-a-marketing-opt-in-checkbox.md).

# Creating a Marketing Opt-in Checkbox

You can create a customer opt-in checkbox for your marketing platforms, including both email and sms marketing.

***

### Email + SMS Consent <a href="#all" id="all"></a>

When placing a form checkbox on your page, under the Settings for the checkbox, place **marketingOptIn** in the element’s “Name” input.

When a shopper consents to both SMS and Email marketing by enabling the marketingOptin checkbox,  a “Contact by Email” field and a “Contact by SMS” field will be visible in the customer’s record.

### Email Consent Only <a href="#email-only" id="email-only"></a>

When placing a form checkbox on your page, under the Settings for the checkbox, place **emailOptIn** in the element’s “Name” input.

When a shopper consents to email marketing by enabling the emailOptIn checkbox, a “Contact By Email” field will be visible in the customer’s record.

### SMS Consent Only <a href="#sms-only" id="sms-only"></a>

When placing a form checkbox on your page, under the Settings for the checkbox, place **contactOptIn** in the element’s “Name” input.\
\
When a shopper consents to SMS marketing by enabling the contactOptIn checkbox, a “Contact By SMS” field will be visible in the customer’s record.

<figure><img src="/files/RC25TxtoRGqbJKkek9VJ" alt=""><figcaption></figcaption></figure>
