Forums

using repeater area

spsh21 14 Jun, 2017
Hi!

In my repeater area with multiply option on I have six fields and I load and save data from this fields to MySQL database by my php modules because of complicated processing. I filled names of this fields like field1[], field2[], field3[],... The field Data provider I filled with {data:field1}. When I run the form for the first time (there are no database data) and save input data to database it works fine, all the arrays are correct and the information in the table is also correct.
But when I try to load previously saved information from this table into my arrays, the arrays are filled correctly (I check it by print_r), but all the form fields are filled with the first values of arrays (by values of field1[0], field2[0], field3[0],...), and in addition when I want to add another six fields by pressing multiply button all new fields are not empty, they are filled with values of field1[0], field2[0], field3[0],...

In CF5 my form works OK, but in CF6 I can't understand what is wrong.

Best regards,
Sergey
Max_admin 27 Jun, 2017
Answer
Hi Sergey,

How did you pass the data to the first group of fields after you read it ?

If the main repeater fields have some values then all clones will have the same values, you need to make sure that the first group is empty, if you named the fields correctly then this should not be a problem, did you check the manual ?

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
spsh21 27 Jun, 2017
1 Likes
Hi Max!

I have read your manual and now my form works OK. Thanks a lot.

Best regards,
Sergey
This topic is locked and no more replies can be posted.