Forums

Checkbox groupd does not save in to database

dezignas 06 Jun, 2013
Hi,

joomla 2.5.11
chronoforms v4 stable

I am trying to save checkbox group result into database table and it does not work.
Debug Info shows everything is ok and it sent it to database table, but on the database I see no results.

What I am doing wrong here ?

Array
(
    [option] => com_chronoforms
    [chronoform] => testing_checks
    [event] => submit
    [Itemid] => 
    [input_checkbox_group_1] => Array
        (
            [0] => 1
        )

    [input_submit_2] => Submit
    [7562ab784aa6e5a473fd51a9167f1764] => 1
    [chronoform_data] => Array
        (
            [cf_uid] => 85c8adc9d8120182afe82f5260ccba45
            [cf_created] => 2013-06-06 17:31:32
            [cf_created_by] => 0
            [cf_ipaddress] => 78.62.118.80
            [cf_user_id] => 0
            [option] => com_chronoforms
            [chronoform] => testing_checks
            [event] => submit
            [Itemid] => 
            [input_checkbox_group_1] => Array
                (
                    [0] => 1
                )

            [input_submit_2] => Submit
            [7562ab784aa6e5a473fd51a9167f1764] => 1
            [cf_id] => 6
        )

    [chronoform_data_cf_id] => 6
)
GreyHead 07 Jun, 2013
Hi dezignas,

Please drag a Handle Arrays action into the OnSubmit event and move it up before the Email action.

Bob
dezignas 07 Jun, 2013
Hi Bob, Thank you very much for your answer.

My previous problem is solved.

Now I have other one.

I am trying to populate the form from database, everything loads except if I have multiple fields selected in the check box group. If I have only one field select it loads ok.

I assumed it would make sense to add handle arrays in the DB Record Loader event on Record found, but with no success, what I could be doing wrong here ?
GreyHead 08 Jun, 2013
Hi dezignas ,

There's a pair of 'array' settings in the DB Record loader action. I think they are on the Advanced tab.

Bob
dezignas 08 Jun, 2013
Hi Bob, thank you🙂
This topic is locked and no more replies can be posted.