# How to use checkbox bootlean value and use it in decission tree

**URL:** https://forum.mautic.org/t/how-to-use-checkbox-bootlean-value-and-use-it-in-decission-tree/18305
**Category:** General Discussion
**Created:** [February 24, 2021, 12:34pm UTC](https://forum.mautic.org/t/how-to-use-checkbox-bootlean-value-and-use-it-in-decission-tree/18305 "2021-02-24T12:34:02Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![gski](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gski/32/2382_2.png) [@gski](https://forum.mautic.org/u/gski)
#### Post date: [February 24, 2021, 12:34pm UTC](https://forum.mautic.org/t/how-to-use-checkbox-bootlean-value-and-use-it-in-decission-tree/18305/1 "2021-02-24T12:34:02Z")

</div>

Hi,  
it’s a pretty basic functionality but i have problem with finding answer for it.

**What i do and what result i would like achieve?** :

- I’m creating newsletter base upon form
- In a form i use group checkbox and i would like to have 3+ checkbox to give user a chance to choose which content they would like to get
- Base upon check boxes i would like to automate and send different email

**With what i have a problem?** :

- For what i know i should make a fields with group checkbox and within it add name of field as a label and value 1 (which define 0/1 mode?)
- Later i should make campaign with condition: In the field “Field” i chooses my checkbox group, in operator checkbox i should choose logical operator, but in the Value i get label name instead 0/1 (for a specific checkbox)

**Summarizing** :

- Probably I’m doing something wrong while I create a form, could you point me somewhere?

---

<div class="post-metadata">

### Author: ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)
#### Post date: [February 24, 2021, 1:44pm UTC](https://forum.mautic.org/t/how-to-use-checkbox-bootlean-value-and-use-it-in-decission-tree/18305/2 "2021-02-24T13:44:16Z")

</div>

Hi!  
You can make it multiple ways:

1. Create the 3 Fields (You are making a recipe newsletter in this example)

- Vegetarian
- Fish
- Meat

Or you can make a radio button with the 3 values:  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/3/319431e8017020ce4f81262354c34db441ccef29.png)

Then you make your campaign based on this value:  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/4/4b65b8447719d2e540c3013d6b70fb053e940ef1.png)

Create all 3 branches:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/2/27b3dfc2d7e1ae835e8b7516dbb2e8331f8fdfdc.png)

Thats it.  
You can also do it by dynamic content, but that is a different story.  
I hope it helps.  
Regards:  
Joey

---

<div class="post-metadata">

### Author: ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)
#### Post date: [February 24, 2021, 1:45pm UTC](https://forum.mautic.org/t/how-to-use-checkbox-bootlean-value-and-use-it-in-decission-tree/18305/3 "2021-02-24T13:45:05Z")

</div>

Oh also - you can create 3 segments based on this field and send emails in 3 different campaigns 🙂

It’s up to you

---

<div class="post-metadata">

### Author: ![gski](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gski/32/2382_2.png) [@gski](https://forum.mautic.org/u/gski)
#### Post date: [February 25, 2021, 10:26am UTC](https://forum.mautic.org/t/how-to-use-checkbox-bootlean-value-and-use-it-in-decission-tree/18305/4 "2021-02-25T10:26:22Z")

</div>

Joey, kindly thank You for an answer.

On my newsletter i would like to ask my user:

- Who they are (wholesaler or shop)

- What content they would like to get (discounts, news, guide)

**Relating to radio buttons** that you suggested (my question was about checkboxes, but i would also like to implement them): campaign builder screenshot shows “contact field value” so i should somehow transform my form answers to Tags?(don’t see other reasonable field)

![Screenshot_2021-02-25 Edit Form - Newsletter test Mautic(1)](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/9/91c8c4100a1b437cf63d2f0db8b8026d9ff36086.png)  
 ![Screenshot_2021-02-25 New Campaign Mautic](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/b/b92669b895851103f8fe99bf494c75e55e31c554.png)

**Relating to checkboxes** (what content they would like to get):

- I made form like this:  
 ![Screenshot_2021-02-25 Edit Form - Newsletter test Mautic](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/9/93dcc91ead98a5d834818d1cdf81c44197f4d086.png)
- Next in campaign tree i **see “Value” as a “Label”** (which confuse me, **is it configured proper way?** )  
 ![Screenshot_2021-02-25 New Campaign Mautic(1)](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/0/057250ecd6ae7c4ba4f5b5c65dc33c423c8fee9d.png)
- And i should end up with something like this?  
 ![Screenshot_2021-02-25 New Campaign Mautic(2)](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/3/360a561d1f79115b2534eca04370a5b48aae7c03.png)

Bless:  
Mattijah

---

<div class="post-metadata">

### Author: ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)
#### Post date: [February 25, 2021, 10:50am UTC](https://forum.mautic.org/t/how-to-use-checkbox-bootlean-value-and-use-it-in-decission-tree/18305/5 "2021-02-25T10:50:22Z")

</div>

Hi, this is fine, yes. I wouldn’t transform anything to tags, you did it good.  
The difference between Label and Value is, that you show Label, and you store Value.  
You can have Label 1 = Apple, Label 2 = Pear, but both are saved as ‘Fruits’  
Or you can have Label = ‘Doom’, value = ‘FPS’.  
So yes, you did good.

In case you want to go further and maybe create Dynamic content in 1 email based on different attributes, you should check out The Marketing Automation Show, [The One With The Dynamic Content For Emails](https://youtu.be/0sY5AfIu2gE).

---

<div class="post-metadata">

### Author: ![dustbro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dustbro/32/12770_2.png) [@dustbro](https://forum.mautic.org/u/dustbro)
#### Post date: [May 20, 2023, 1:55pm UTC](https://forum.mautic.org/t/how-to-use-checkbox-bootlean-value-and-use-it-in-decission-tree/18305/6 "2023-05-20T13:55:31Z")

</div>

Is it possible to do this with a “select” field on a form?  
For instance, if I have a dropdown where someone can select “Red”, “Blue”, “Green”, how can I tag the user with their selection and then email each of those categories separately?

---

<div class="post-metadata">

### Author: ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)
#### Post date: [May 22, 2023, 5:00pm UTC](https://forum.mautic.org/t/how-to-use-checkbox-bootlean-value-and-use-it-in-decission-tree/18305/7 "2023-05-22T17:00:56Z")

</div>

Hello @dustbro, welcome to the community.  
Just the same way.

You the selected value is saved as a custom field.  
The custom field can be used in a segment filter.  
You can send emails to segments.  
Joey
