# Double-Opt-in and Workflows

**URL:** <https://community.hubspot.com/t/double-opt-in-and-workflows/101949>\
**Category:** Lists, Lead Scoring & Workflows\
**Tags:** workflows\
**Created:** [March 7, 2024, 10:33am UTC](https://community.hubspot.com/t/double-opt-in-and-workflows/101949 "2024-03-07T10:33:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AHeisel](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/aheisel/32/99678_2.png) [@AHeisel](https://community.hubspot.com/u/AHeisel)\
**Post date:** [March 7, 2024, 10:33am UTC](https://community.hubspot.com/t/double-opt-in-and-workflows/101949/1 "2024-03-07T10:33:26Z")

</div>

Hello everyone,

We have created a workflow in which the following applies as a trigger:  
- Form submission  
- And e-mail confirmation status is clicked / confirmed

If this is fulfilled, a mail should go out and a task should be created for Sales.

The problem is, if someone fills out the form and has not yet given an opt-in, they first receive the opt-in mail. Even if he then confirms this, the action (mail) is not triggered.

Do we have to include the opt-in in the contact recording trigger at all?

Thanks!

Anne

---

<div class="post-metadata">

**Author:** ![karstenkoehler](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/karstenkoehler/32/68554_2.png) [@karstenkoehler](https://community.hubspot.com/u/karstenkoehler)\
**Post date:** [March 7, 2024, 10:35am UTC](https://community.hubspot.com/t/double-opt-in-and-workflows/101949/2 "2024-03-07T10:35:24Z")

</div>

Hi @AHeisel,

Happy to help here. Can you share a screenshot of the workflow?

> * * *
> 
> @AHeisel wrote:
> 
> The problem is, if someone fills out the form and has not yet given an opt-in, they first receive the opt-in mail. Even if he then confirms this, the action (mail) is not triggered.
> 
> * * *

This should not be an issue, actually, unless you specified the form submission enrollment criterion to be limited to a certain time frame. HubSpot would generally simply wait for the confirmation to happen, and the workflow would trigger when it does.

Once you share the workflow, I can elaborate.

Best regards

---

<div class="post-metadata">

**Author:** ![AHeisel](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/aheisel/32/99678_2.png) [@AHeisel](https://community.hubspot.com/u/AHeisel)\
**Post date:** [March 7, 2024, 10:38am UTC](https://community.hubspot.com/t/double-opt-in-and-workflows/101949/3 "2024-03-07T10:38:23Z")

</div>

Sure

 ![AHeisel_0-1709807834927.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/3/5/353573e94959671c1212118bab993f8307a07c4e.png)

 ![AHeisel_1-1709807895632.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/0/6/06f31f7946bb94b30bd410940cdbb841662ae8eb.png)

Thanks!

---

<div class="post-metadata">

**Author:** ![karstenkoehler](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/karstenkoehler/32/68554_2.png) [@karstenkoehler](https://community.hubspot.com/u/karstenkoehler)\
**Post date:** [March 7, 2024, 10:41am UTC](https://community.hubspot.com/t/double-opt-in-and-workflows/101949/4 "2024-03-07T10:41:02Z")

</div>

@AHeisel mistake spotted. You’re not filtering for the confirmation of the enrolled contact but for the confirmation of a contact **associated** to the enrolled contact.

 ![karstenkoehler_0-1709808006143.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/9/c/9c3382d4406f5e492b2efeedde2c7c7db32b249e.png)

Since typically, I would assume, you’re not associating contacts with contacts, this is why the workflow is not triggering.

Please remove this part of the enrollment criteria and re-add it, not changing the association dropdown. “Marketing email confirmation status” is any of “User clicked confirmation” and “Customer marked confirmed” should suffice by the way, the other options are not in use as far as I know.

Correct:

 ![karstenkoehler_0-1709808135355.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/2/9/293a50719ef13e1e7c7b7bf1b1d6e47658a9f6f6.png)

Incorrect:

 ![karstenkoehler_1-1709808167867.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/6/b/6b972aba346192d0842c08dc3b43bb20f4984711.png)

---

<div class="post-metadata">

**Author:** ![franksteiner79](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/franksteiner79/32/34443_2.png) [@franksteiner79](https://community.hubspot.com/u/franksteiner79)\
**Post date:** [March 7, 2024, 10:40am UTC](https://community.hubspot.com/t/double-opt-in-and-workflows/101949/5 "2024-03-07T10:40:58Z")

</div>

Hi @AHeisel

Depending on your DOI settings, no email - other than the DOI email - would and could be sent until the DOI status is clicked / confirmed. That is how DOI is supposed to work, unless you have some customised version of HubSpot’s DOI setup.

Is your workflow using event triggers or filter criteria triggers? If you are using the latter the workflow will execute and send the email as soon as both criteria - form submission AND e-mail confirmation status is clicked / confirmed - are met.

Frank
