Buy Now
Sign in

Multipage + iterator DB Save

davideiandoli75 , July 01 2017
Answered
D
davideiandoli75
I'm building a Multipage form: in the first page I get data of a group as 'Company name' and similar, and I also get the number of individuals wishing to join a course; in the second I get data for each person by means of a repeater area. Now I'm building the actions, ad I wish to save in the same db table the data for the group and those I get (for n fields) for the individuals.

I tried to set two DB Save Actions, one of these configured as suggested for the repeater, but actually my forms stores only data from first page. I got same issue trying to save data in two different Db tables. Any ideas? Thanks a lot.
admin
Hi Davide,

Did you check the iteration section in the manual ? it explains how to use a Loop event to do that.

The data provider of the loop should point to the fields data array and the data provider of the "save data" inside the loop should point to the loop "row".

Best regards,
Max
Max
If your main question got answered then please mark the answer using the button!​
​Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
D
davideiandoli75
I tried to rebuild the DB action. I put {data:Model} in loop event data provider and {var:loop_event17.row} in DB Save data provider, and so I solved. Before this I tried {var:iterator_name.row} shortcode and I didn't succeed.

However thanks a lot, Max

Davide
admin
Hi Davide,

I have cleared this in the manual.

Best regards,
Max
Max
If your main question got answered then please mark the answer using the button!​
​Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!