Forums

How to use DB Multi Save

abi5090 24 Feb, 2015
I have built a sample form based on the demo-multiplier one and now I want to save this to my DB. Stuck at this step.

My setup is as follows -

designer tab -
[attachment=0]designer.PNG[/attachment]

setup tab -
[attachment=1]setup.PNG[/attachment]

multisave -
[attachment=7]multisave.PNG[/attachment]

form before submit -
[attachment=2]form1.PNG[/attachment]

after submit -
[attachment=3]page1.PNG[/attachment]
[attachment=4]page2.PNG[/attachment]
[attachment=5]page3.PNG[/attachment]
[attachment=6]dbsave.PNG[/attachment]

Can really use some help on how to use this multisave to db.

Regards,
Abi
Max_admin 24 Feb, 2015
Hi Abi,

In order for the multi db save to work you need data in this format:

"model" => array(0 => array("field1" => "val1"), 1 => array("field1" => "val2"))


Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
abi5090 24 Feb, 2015
Thanks Max for looking into it. How do I get the data in the format you just mentioned, through CF?

Anything am doing wrong?
Max_admin 24 Feb, 2015
Your fields names should look like this:
Model[###][field]


Where "###" is the string which is going to be replaced using the multiplier.
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.