# Map form Consent to Mailchimp

When someone submits your form, Mailchimp needs to know whether they agreed to receive marketing emails.

When someone submits your form, Mailchimp needs to know whether they agreed to receive marketing emails.

### ℹ️ What Is “Consent” in Mailchimp?

**Consent** means the user has agreed to receive marketing emails from you.

Mailchimp uses a special field (often called **Marketing Consent**) to store this information.

If consent is not sent correctly:

* Contacts may be added without permission
* You may not be able to email them
* This can cause compliance issues (GDPR, email laws)

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

***

### ✅ Overview: What We’ll Do

We will:

1. Add a **hidden** field to your form
2. Assign a consent value to that field
3. Map that field to **Mailchimp Consent**

***

### ⚙️ Step 1:  Add a Checkbox for Consent

1. Open the app > click **Forms** > open the form you want to edit&#x20;
2. Click **Add Elements** > choose **Consent**
3. **Add fiel**d label&#x20;

> Exampl&#x65;*: `Yes, I am happy to receive emails about products, services, and updates.`*

### ⚙️ Step 2: Add a Hidden Field to Your Form

1. Open the app > click **Forms** > open the form you want to edit&#x20;
2. Click **Add Elements** > choose **Hidden** element
3. Name the field something clear, for example:
   * `Marketing Consent`
   * or `Email Consent`

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

4\. Assign a Consent Value to hidden field&#x20;

**Data type** → `Dynamic value`

#### Rule 1 – If user agrees

* **When** → select the consent checkbox
* **is** → `Yes`
* **then value** → `subscribed`

#### Rule 2 – If user does not agree

* **When** → select the consent checkbox
* **is** → `No`
* **then value** → `unsubscribed`

✅ Now the hidden field updates automatically.

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

***

### ⚙️ Step 3: Map the Hidden Field to Mailchimp Consent

Now connect the form field to Mailchimp.

1. In the form, click the Integration icon on the left menu > click on **Mailchimp** option
2. Scroll to **Map questions to Mailchimp fields**  > find the row for **Status** (or consent field)
3. Map it like this:

* Your hidden field (on the right)
* **Mailchimp consent (Status)** (on the left)

4. Click **Save**

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

***

### 🔄 How It Works After Setup

Once your form and Mailchimp integration are set up, everything works automatically in the background.

Here’s what happens when someone submits the form:

1. Customer fills out the form

2- The hidden field checks what the customer selected:

* If the customer selects **Yes**\
  → Hidden field value becomes **`subscribed`**
* If the customer selects **No**\
  → Hidden field value becomes **`unsubscribed`**&#x20;

3. When the form is submitted:

* The email address is sent to Mailchimp
* Mailchimp uses that value to set the contact’s status. Users who agreed are marked as **subscribed**

<figure><img src="/files/FlJnXP9oewPRio8F0ctR" 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://docs.powerfulform.com/app-integration/mailchimp-integration/map-form-consent-to-mailchimp.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.
