# Problem with displaying options in select module from sub-array

**URL:** <https://community.weweb.io/t/problem-with-displaying-options-in-select-module-from-sub-array/9935>\
**Category:** How do I?\
**Tags:** select\
**Created:** [July 25, 2024, 1:10pm UTC](https://community.weweb.io/t/problem-with-displaying-options-in-select-module-from-sub-array/9935 "2024-07-25T13:10:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chaefner](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/chaefner/32/9652_2.png) [@chaefner](https://community.weweb.io/u/chaefner)\
**Post date:** [July 25, 2024, 1:10pm UTC](https://community.weweb.io/t/problem-with-displaying-options-in-select-module-from-sub-array/9935/1 "2024-07-25T13:10:23Z")

</div>

Hi Community,

can someone help get my select module up and running?

I have this data structure in Xano, which is loaded as collection in WeWeb:

- Product A  
\*\* Variant 1 (size: S; color: green)  
\*\* Variant 2 (size: M; color: green)  
\*\* Variant 3 (size: L; color: green)

- Product B  
\*\* Variant 1 (size: S; color: blue)  
\*\* Variant 2 (size: M; color: green)  
\*\* Variant 3 (size: L; color: yellow)

Variants are arrays nested in the product items:

 ![Bildschirmfoto 2024-07-25 um 14.59.08](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/6/61c2f260383a39dba375bd403257b9d60a1c3cf6.png)

I am now trying to use that data in a select element in WeWeb, but I can’t get the variants array to be displayed in the select-options.

Here is what I did:

1. I did bind the **product array** in the **options** of the **main element of the select module**  

2. The option text, I did bind to the variants (concatenate size and color) from the variant array in the item.data.  

However, no options are displayed yet:

 ![Bildschirmfoto 2024-07-25 um 15.00.06](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/8/8057a13d934c1fc0ff503007dd527fc454311dd1.png)

I assume the formula in step 2 is wrong. Can someone help me get it right so all variant values will be avaiable in the options?

---

<div class="post-metadata">

**Author:** ![jptrinh](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/jptrinh/32/1493_2.png) [@jptrinh](https://community.weweb.io/u/jptrinh)\
**Post date:** [July 26, 2024, 2:09pm UTC](https://community.weweb.io/t/problem-with-displaying-options-in-select-module-from-sub-array/9935/2 "2024-07-26T14:09:55Z")

</div>

Hey @chaefner 👋  
The binding of the options will happen just below the Options settings of the Select component 🙂  
 ![CleanShot 2024-07-26 at 16.05.20](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/2/2a4f6771bf81615faa3ffe3b4fc5e1ab19ac7613.png)

But to achieve the same label, you’d need to rework the bound data a little bit.

---

<div class="post-metadata">

**Author:** ![chaefner](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/chaefner/32/9652_2.png) [@chaefner](https://community.weweb.io/u/chaefner)\
**Post date:** [July 28, 2024, 5:04pm UTC](https://community.weweb.io/t/problem-with-displaying-options-in-select-module-from-sub-array/9935/3 "2024-07-28T17:04:22Z")

</div>

Hey @jptrinh .

Thanks, that worked. However, It seems like for this field, there is no option to display the output via formula. I can only select a single value here. If thats the case, I would have to create an additional value in the database. Also ok, just need to know it.

![Bildschirmfoto 2024-07-28 um 19.02.44](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/f/f8832ddf953a122b97a5b538c459b94b58398e1a.jpeg)

---

<div class="post-metadata">

**Author:** ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)\
**Post date:** [July 28, 2024, 6:07pm UTC](https://community.weweb.io/t/problem-with-displaying-options-in-select-module-from-sub-array/9935/4 "2024-07-28T18:07:08Z")

</div>

I think you shoukd manipulate the data via a formula bound to options, before setting the label, value etc.

You should flatten it before binding basically, as there is no way to do this for now I think.
