• Resolved marco3253

    (@marco3253)


    Dear developer, thank you for your easy and working plugin.

    I have a form on my website that has various fields, also a checkbox where you can mark multiple choices.

    Unfortunately, all the fields are exported well in CSV but the checkboxes.

    It is marked as “array” when the user select a multiple choice.

    in contact form the question is “what language do you know?”

    <label> Lingue estere che ritiene di conoscere con sufficiente preparazione </label>
    [checkbox checkbox-574 “Arabo” “Francese” “Inglese” “Spagnolo” “Tedesco” “Altro (specificare di seguito)”]

    and if the user mark english and spanish, the csv export this as “array” how can i solve this?

    thank you.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter marco3253

    (@marco3253)

    I tried also to do different checkboxes (1 valute each) to sidestep the problem, but another problems comes in.

    [checkbox checkbox-574 “Arabic”]
    [checkbox checkbox-575 “French”]
    [checkbox checkbox-576 “English”]

    If i use this kind of structure, if the user1 select only Arabic the csv SHOULD be like this:

    NAME | SURNAME | LANGUAGE1 | LANGUAGE2 |LANGUAGE3 | Email |
    john | Doe | Arabic | | | [email protected] |

    but it comes like this

    NAME | SURNAME | LANGUAGE1 | Email |LANGUAGE2 | LANGUAGE3 |
    john | Doe | Arabic | [email protected]| | |

    (empty fields for last)
    and guess what happen when another user compile the form and select language 2 and 3?
    A mess

    NAME | SURNAME | LANGUAGE1 | Email |LANGUAGE2 | LANGUAGE3 |
    john | Doe | Arabic | [email protected]| | |
    mark | Smith | French | English | [email protected] | |

    so maybe it is easier to solve the first question, i hope you got the problem it is not easy to write the chaos lol

    thank you.

    • This reply was modified 7 years, 11 months ago by marco3253.
    Plugin Author Arshid

    (@arshidkv12)

    It will fix as soon possible. Thanks for your forum post.

    Plugin Author Arshid

    (@arshidkv12)

    Please update cfdb7 plugin.
    Thanks

    Thread Starter marco3253

    (@marco3253)

    Thank you for your fast fixing the problem, i updated the plugin seems to work fine now!

    Just last thing (sorry if i bother you but users are meant to find bugs lol)

    did you ever noticed that if you compile one of the field with an “apostrophe” don’t know if in english is the right terms, anyway, the surname of a friend of mine is D’amico, if i use d’amico in a text field, exporting i get this error on the csv.

    <b>Warning</b>: Invalid argument supplied for foreach() in <b>D:\xampp\htdocs\infrweb\wp-content\plugins\contact-form-cfdb7\inc\export-csv.php</b> on line <b>87</b><br />

    maybe there is something wrong with special chars.

    thank you.

    Plugin Author Arshid

    (@arshidkv12)

    Any error exist ?

    Thread Starter marco3253

    (@marco3253)

    You fixed this in another thread

    Plugin Author Arshid

    (@arshidkv12)

    Please provide feedback ??

    Thread Starter marco3253

    (@marco3253)

    sure

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Exporting in CSV – checkboxes marked as “array”’ is closed to new replies.