I have a problem with checkboxes on my form.
In the On submit I have a Handle Arrays action before the DB save.
On a test form without a model id it works ok, but on a form with model id's not.
The error message is "Tablechronoforms_data_checkbox::bind(*NULL*)
Any idea's?
Rob
In the On submit I have a Handle Arrays action before the DB save.
On a test form without a model id it works ok, but on a form with model id's not.
The error message is "Tablechronoforms_data_checkbox::bind(*NULL*)
Any idea's?
Rob
I found a solution.
Instead of the Handle Arrays action I use a Custom Code with:
<?php
$form->data['klachten']['behandeld'] = implode(',',$form->data['behandeld']);
?>
That puts the array values from "behandeld"( without model id) as a string in $form->data['klachten']['behandeld'].
Now it can be saved it in the table.
Rob
Instead of the Handle Arrays action I use a Custom Code with:
<?php
$form->data['klachten']['behandeld'] = implode(',',$form->data['behandeld']);
?>
That puts the array values from "behandeld"( without model id) as a string in $form->data['klachten']['behandeld'].
Now it can be saved it in the table.
Rob
Hi Rob,
That looks good, I don't think that the Handle Arrays action is sophisticated enough to recognise and handle the nested arrays you get with Model Ids.
Bob
That looks good, I don't think that the Handle Arrays action is sophisticated enough to recognise and handle the nested arrays you get with Model Ids.
Bob
This topic is locked and no more replies can be posted.