# Bug using select and conditions based form field

**URL:** <https://forum.mautic.org/t/bug-using-select-and-conditions-based-form-field/9479>\
**Category:** Development\
**Created:** [September 15, 2017, 9:20am UTC](https://forum.mautic.org/t/bug-using-select-and-conditions-based-form-field/9479 "2017-09-15T09:20:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![knishikawa](https://avatars.discourse-cdn.com/v4/letter/k/e480ec/32.png) [@knishikawa](https://forum.mautic.org/u/knishikawa)\
**Post date:** [September 15, 2017, 9:20am UTC](https://forum.mautic.org/t/bug-using-select-and-conditions-based-form-field/9479/1 "2017-09-15T09:20:25Z")

</div>

Hi, maybe i found a little bug in mautic using Select values submitted by forms and conditions based form field into campaign.  
  
  
  
If I insert label and value with different values into select  
  
  
  
 ![](http://www.cittanet.it/tmp/select.JPG)  
  
  
  
then when i try to check which value has been selected with conditions based form field i get and error.  
  
  
  
 ![](http://www.cittanet.it/tmp/condition.JPG)  
  
  
  
  
  
Examples:  
  
  
  
If I insert into the select field:  
  
LABEL: Pescara - VALUE: pescara  
  
condition based returns me and error of invalid value when i try to check if user selected Pescara  
  
  
  
If I insert into the select field:  
  
LABEL: Pescara - VALUE: Pescara  
  
condition based DOESN’T returns me any error and i can go on with campaign  
  
  
  
it seems like condition based form value works only if in a select field LABEL is equal to VALUE

---

<div class="post-metadata">

**Author:** ![knishikawa](https://avatars.discourse-cdn.com/v4/letter/k/e480ec/32.png) [@knishikawa](https://forum.mautic.org/u/knishikawa)\
**Post date:** [September 15, 2017, 9:20am UTC](https://forum.mautic.org/t/bug-using-select-and-conditions-based-form-field/9479/2 "2017-09-15T09:20:25Z")

</div>

Hi, maybe i found a little bug in mautic using Select values submitted by forms and conditions based form field into campaign.

If I insert label and value with different values into select

![](http://www.cittanet.it/tmp/select.JPG)

then when i try to check which value has been selected with conditions based form field i get and error.

![](http://www.cittanet.it/tmp/condition.JPG)

Examples:

If I insert into the select field:  
LABEL: Pescara - VALUE: pescara  
condition based returns me and error of invalid value when i try to check if user selected Pescara

If I insert into the select field:  
LABEL: Pescara - VALUE: Pescara  
condition based DOESN’T returns me any error and i can go on with campaign

it seems like condition based form value works only if in a select field LABEL is equal to VALUE

---

<div class="post-metadata">

**Author:** ![paulomarcos](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/paulomarcos/32/212_2.png) [@paulomarcos](https://forum.mautic.org/u/paulomarcos)\
**Post date:** [March 28, 2018, 5:11pm UTC](https://forum.mautic.org/t/bug-using-select-and-conditions-based-form-field/9479/3 "2018-03-28T17:11:00Z")

</div>

Hello

Can someone help me. I am using checkbox on form. In campaigns I make a condition that it selected an item, for example, I am comparing if the value is equal to App1. I tried with select and it works, but with checkbox it does not work.

[https://cloud.githubusercontent.com/assets/4445914/21312079/1610fcae-c5f3-11e6-9032-a7453eab9b4c.png](https://cloud.githubusercontent.com/assets/4445914/21312079/1610fcae-c5f3-11e6-9032-a7453eab9b4c.png)
