Tell us what you are trying to do? I'm using the post creation feature in Gravity Forms, and the form is spitting out a simple array for the multi checkbox field. When it passes that array to my post type, it does not result in any of the boxes being checked. What format does the array need to be converted to so that it will show correctly as checked boxes. For instance, the choices are Ride Guide, Rest Stop, Route Developer, Van Driver, and Route Marker. If someone picks Ride Guide and Rest Stop, and the array is "Ride Guide, Rest Stop" how can that be converted to work correctly in the wpcf-volunteer-position2 field that I have so the right boxes will be checked? Right now, it ends up in the checkbox field as a simple array and does not result in any checked boxes.
Is there any documentation that you are following? I've been working with Gravity Forms support, and I found nothing in a search of your support forum.
Hello. Thank you for contacting the Toolset support.
Toolset custom checkboxes field stores it's options as serialize array.
Please check the following Doc that may help you in order to set or get the checkboxes value:
- hidden link
If that does not work, please share problem URL and admin access details and I will review your current configurations and try to guide you in the right direction.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
It seems you assign the 0 value when the checkbox is unchecked with the custom code you added to your child theme's functions.php file:
=> hidden link
You need to make sure if checkbox is unchecked then you should not assign any value to it, it should be either removed for the serialize array or the value should be blank.
But that doesn't explain why, if I just create the post right in Toolset and then edit it to check more boxes, it also shows zeros in the post list for the empty boxes. (Where it didn't show them when I initially created it.)
I checked and we do not offer the way to add "Checkboxes" field as post type listing column in admin.
I see that you are using the plugin "Admin Columns" and using that plugin you are displaying the checkboxes field. You can get in touch with "Admin Columns" plugin support and raise this issue in front of them. Otherwise - functionality wise it seems to be working as expected.