Skip Navigation

[Resolved] Checkboxes show corrupt code compared to Radio Buttons when Exported

This support ticket is created 6 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 1 reply, has 2 voices.

Last updated by Minesh 6 years, 6 months ago.

Assisted by: Minesh.

Author
Posts
#875308

Hi,
I have 2 field groups. one as checkboxes called (wpcf-main-categories), and one as radio buttons called (wpcf-post-types-filter).

for both groups, i entered the values to be stored in the database. i used plain lowercase English characters.

I used WP Allexport plugin to export the post date to csv.

here are the results:
hidden link

The radio buttons show the correct value (e.g. book), while the checkboxes show the correct values too (e.g. mc-patrology), but show a very long string of code before it.

is this the way you designed the checkboxes? it makes bulk processing of these fields very difficult using csv as it has semicolons in it.
on the other hand, i can't use radio buttons for this group as the posts can have more than one value, and i want to filter posts using them (similar to your real estate demo).

please advise if here is a problem or a way to not show this code string for checkboxes.

thanks.

#876672

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - checkboxes are stored as serialized array and that is not corrupt code but the correct code.

If you planning to import checkboxes, its not supported, please check following:
=> https://toolset.com/documentation/user-guides/how-to-import-content-into-wordpress-using-csv/import-content-csv-importer-plugin/#field-types-that-are-not-supported

if you want to import checkboxes field, you need a pro version - see the comparisons chart:
=> https://toolset.com/documentation/user-guides/how-to-import-content-into-wordpress-using-csv/