Binding a repeat region to an array

Hello,
I’m following this tutorial in order to create an input field containing an array: https://docs.wappler.io/t/working-with-arrays/7701 .
I’m finding that at this step: Select Items under the Array component. This will repeat the button as many times as the items in the array are: , my repeat region doesn’t save the arr items under expression.


Is there something missing in the tutorial?

1 Like

Hello,
What’s the expression added in the code?

Hi @Teodor, it doesn’t actually add anything to the code, the expression remains faded and the code unchanged:

<div id="repeat_geos" is="dmx-repeat">

Are experimental features turned on in your Wappler?
If no, please enable them and try again.

1 Like

I just enabled the experimental features and this now works, thanks @Teodor.

<div id="repeat_geos" is="dmx-repeat" dmx-bind:repeat="arr_geos.items">

We are going to check why is this not working with the experimental features off.

2 Likes

Thanks @Teodor. If you don’t mind, I have a follow-up question that the tutorial doesn’t seem to cover: how do I pass the contents of the array to a form in order to record its values into my database (I’m looking to record all of them into one column/field, not create one record per item in the array, something like: value1, value2, value3).

Thanks!

I have it, I created a hidden field that collect the values of the array, I can pass that on as a post variable.