Buy Now
Sign in

Saving data in array

Carlos angel , November 06 at 14:26
C
Carlos angel

Hi.

I have a form that can add more fields, but I can not save the data.
How do I create an array to save multiple dynamic fields from my form?

admin

Hi Carlos,

This is explained in details in the manual.

Best regards

Max
If your main question got answered then please mark the answer using the button!

C
Carlos angel

Hi Admin. How are you?


Well, I looked in the manual and I did not quite understand what it is to do.
I know that in the field "Data Provider" is used to create an array, but when I put some data and then I try to save some information, however I can not save this data.

Can you help me with this problem?

admin

Hi Carlos,

The repeating fields is an advanced feature, you need to use a Loop to process the "save data" action multiple times, the "Data provider" of the "Loop" should be {data:model_name}, but the "Data provider" of the "Save data" should be the current loop data row: {var:loop_name.row}

Best regards

Max
If your main question got answered then please mark the answer using the button!