Title: Multiple checkboxes empty on exprt
Last modified: November 11, 2020

---

# Multiple checkboxes empty on exprt

 *  [dewfrost](https://wordpress.org/support/users/dewfrost/)
 * (@dewfrost)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/multiple-checkboxes-empty-on-exprt/)
 * Hello,
 * the plugin works smoothly with most field types (text, numbers, radio buttons)
   but the “checkboxes” (multi-choice) fields are always empty in the CSV upon export.
 * Perhaps it has to do with the CSV fields not being encased in quotes, or with
   the separator in the CSV? (In the database, the checkbox field values are stored
   as a string such as “value1, value2, value5”.)
 * BTW this is Buddyboss, not Buddypress. No idea whether it makes any difference.
 * Thanks a lot in advance

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Thread Starter [dewfrost](https://wordpress.org/support/users/dewfrost/)
 * (@dewfrost)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/multiple-checkboxes-empty-on-exprt/#post-13648323)
 * Sorry, correction: it’s JSON. Example:
 * `a:1:{i:0;s:8:"value1";i:2;s:11:"value2";}`
 *  Thread Starter [dewfrost](https://wordpress.org/support/users/dewfrost/)
 * (@dewfrost)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/multiple-checkboxes-empty-on-exprt/#post-13648672)
 * Solved it myself after fiddling about a little.
 * It was enough to change line 184 from
 * `$field_data = xprofile_get_field_data( $field_id, $user->ID );`
 * to
 * `$field_data = xprofile_get_field_data( $field_id, $user->ID, 'comma' );`
 * (The default for the third parameter is ‘array’.)
 * Now all fields are exported correctly.
 * Hope it helps!
 *  [azureconcept](https://wordpress.org/support/users/azureconcept/)
 * (@azureconcept)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/multiple-checkboxes-empty-on-exprt/#post-13679834)
 * [@dewfrost](https://wordpress.org/support/users/dewfrost/) Where do you live 
   so I can send you a beer? This really helped me, I was struggling with literally
   the EXACT same issue with BuddyBoss. The checkbox profile data was coming up 
   empty on the CSV. This fixed it. THANK YOU SO MUCH.
 *  Thread Starter [dewfrost](https://wordpress.org/support/users/dewfrost/)
 * (@dewfrost)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/multiple-checkboxes-empty-on-exprt/#post-13681345)
 * [@azureconcept](https://wordpress.org/support/users/azureconcept/) happy it helped!
 * Thanks for the beer, appreciated 😉
 *  [azureconcept](https://wordpress.org/support/users/azureconcept/)
 * (@azureconcept)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/multiple-checkboxes-empty-on-exprt/#post-13683053)
 * [@dewfrost](https://wordpress.org/support/users/dewfrost/) on a side note did
   you find issues with the position output coming as ID rather than the actual 
   name?
 *  Thread Starter [dewfrost](https://wordpress.org/support/users/dewfrost/)
 * (@dewfrost)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/multiple-checkboxes-empty-on-exprt/#post-13683978)
 * [@azureconcept](https://wordpress.org/support/users/azureconcept/) nope, never
   had such issues.
 *  Plugin Author [shawfactor](https://wordpress.org/support/users/shawfactor/)
 * (@shawfactor)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/multiple-checkboxes-empty-on-exprt/#post-13695529)
 * Guys,
 * Pete Shaw here plugin dev.
 * I´m looking into the first issue. I´ll probably add the change suggested to the
   plugin. It looks logical but I´m just testing it
 * The position issue is separate and specific to buddyboss.
 * Pete

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Multiple checkboxes empty on exprt’ is closed to new replies.

 * ![](https://ps.w.org/lh-buddypress-export-xprofile-data/assets/icon-256x256.png?
   rev=2081109)
 * [LH Buddypress Export Xprofile Data](https://wordpress.org/plugins/lh-buddypress-export-xprofile-data/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/lh-buddypress-export-xprofile-data/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/lh-buddypress-export-xprofile-data/)
 * [Active Topics](https://wordpress.org/support/plugin/lh-buddypress-export-xprofile-data/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/lh-buddypress-export-xprofile-data/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/lh-buddypress-export-xprofile-data/reviews/)

## Tags

 * [csv](https://wordpress.org/support/topic-tag/csv/)
 * [export](https://wordpress.org/support/topic-tag/export/)

 * 7 replies
 * 3 participants
 * Last reply from: [shawfactor](https://wordpress.org/support/users/shawfactor/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/multiple-checkboxes-empty-on-exprt/#post-13695529)
 * Status: not resolved