# API hydrate multiple select with multiple values

**URL:** <https://forum.mautic.org/t/api-hydrate-multiple-select-with-multiple-values/11218>\
**Category:** Product Support\
**Created:** [September 25, 2019, 8:44am UTC](https://forum.mautic.org/t/api-hydrate-multiple-select-with-multiple-values/11218 "2019-09-25T08:44:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lolow](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/lolow/32/738_2.png) [@lolow](https://forum.mautic.org/u/lolow)\
**Post date:** [September 25, 2019, 8:44am UTC](https://forum.mautic.org/t/api-hydrate-multiple-select-with-multiple-values/11218/1 "2019-09-25T08:44:42Z")

</div>

**Your software**  
My Mautic version is: 2.13.1  
My PHP version is:5.63

**Your problem**  
My problem is:

How to pass multiple values to multiple select with the API please?

These errors are showing in the log:

Steps I have tried to fix the problem:  
I tried with a “|” but it didn’t work. However when I hydrate contact with a classic form, it shows the field with a “|” between each value in the contact list

---

<div class="post-metadata">

**Author:** ![lolow](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/lolow/32/738_2.png) [@lolow](https://forum.mautic.org/u/lolow)\
**Post date:** [September 25, 2019, 9:45am UTC](https://forum.mautic.org/t/api-hydrate-multiple-select-with-multiple-values/11218/2 "2019-09-25T09:45:24Z")

</div>

Finally just need to prefix the select multiple variable with [] as an array.  
myVariable[0] =\> “value1”  
myVariable[1] =\> “value2”

etc…

Resolved!

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [September 25, 2019, 10:13am UTC](https://forum.mautic.org/t/api-hydrate-multiple-select-with-multiple-values/11218/3 "2019-09-25T10:13:47Z")

</div>

Fantastic! Let’s mark it as solved so others find it! Glad you got it figured out in the end!
