# 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="https://3790748257-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT43PzcNjyZtWby9yrGd3%2Fuploads%2F4LbHWDCboxwTXZnpY77W%2Fimage.png?alt=media&#x26;token=e277d93a-20ce-49db-9747-2c9dc206d44b" alt=""><figcaption></figcaption></figure>
