Buy Now
Sign in

how do I create a datatable that saves form fields?

Carlos angel , October 26 2017
C
Carlos angel

I created a form that has multiple fields, but when I try to save them in a datatable, I can not save.

Can someone help me?

GreyHead

Hi Carlos Angel,

What exactly is the problem?

If you have added a multiplier to your form the the data should be returned as an array of results and you can either convert that array to a string or, usually better, save the multiplier data to a second table linked to the main one by the new record ID.

Bob

ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much

C
Carlos angel

Hi, Grey.


Each time I finish filling out my form and I try to save it appears this error


Warning: require_once (/ home /.../ public_html / joomla / libraries / joomla / document / html / renderer / head.php): failed to open stream: No such file or directory in /home/..../public_html /joomla/templates/jl_arc_free/error.php on line 42

Fatal error: require_once (): Failed opening required '/home/.../public_html/joomla/libraries/joomla/document/html/renderer/head.php' (include_path = '.: / Opt / cpanel / ea-php71 / root / usr / share / pear ') in /home/..../public_html/joomla/templates/jl_arc_free/error.php on line 42

GreyHead

Hi Carlos angel,

The error appears to be from a file in your template. Please try changing the template temporarily and see if the message disappears. If it does you may need to update your template.

Bob

ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much

C
Carlos angel

Oi GreyHead.


I already know what the problem was.
This was happening because I had added a field multiplier inside the form, but the data was not saved because I did not have an array that could save the data from the multiplier.
The question now is: how can I make this array?