# 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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET 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?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
