Saving data in array

Carlos angel 06 Nov, 2017
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?
Max_admin 06 Nov, 2017
Hi Carlos,

This is explained in details in the manual.

Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Carlos angel 07 Nov, 2017
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?
Max_admin 15 Nov, 2017
Answer
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, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.