Skip Navigation

[Resolved] Checkbox from ACF not working

This thread is resolved. Here is a description of the problem and solution.

Problem:

However, I have problem with using the Checkboxes field from ACF. It does not work when I import this into Toolset.

Solution:

The ACF checkboxes field is not compatible with Toolset Checkboxes field, Toolset Checkboxes field stores value in a serialized array, which is different from ACF checkboxes field, so it could not add the ACF Checkboxes Field to Types Control.

To avoid complications, you might consider to create a Checkboxes Field with Types plugin, and edit each post, setup the Checkboxes Field value manually.

Relevant Documentation:

This support ticket is created 3 years, 9 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 4 replies, has 2 voices.

Last updated by andersM 3 years, 9 months ago.

Assisted by: Luo Yang.

Author
Posts
#2012797

Hello,
I am using the ACF plugin, and have no problem importing the custom fields created with this plugin into Toolset.
However, i have problem with using the Checkbox field from ACF. It does not work when I import this into Toolset. Do you know how i can fix this?

#2013115

Hello,

Are we talking about a custom checkboxes field(multiple choices) or checkbox field?

If it is a checkbox field, you just need to make sure the custom field value is same as the setting in Toolset Types plugin side, if this custom field is created with Toolset Types, you will add "wpcf-" before the field slug. for example:
In Types plugin, the custom field slug is "my-field", but in your database, the meta_key value should be "wpcf-my-field".

More help:
https://toolset.com/documentation/customizing-sites-using-php/functions/

when you are accessing custom fields through native WordPress functions, you need to prepend the wpcf- prefix to the slug. Continuing from the above example, for native WordPress function to access the “House Price” field, you need to use the wpcf-house-price slug.

#2013211

Hello,

Thanks for the reply.
It is a multi selection checkboxes field and it is created in ACF and i need to import that into Toolset, so i can use it in a form. I have right now "Manage-non Toolset post fields" and created the exact same options as it has in the ACF field. But it still does not work.

#2013249

The ACF checkboxes field is not compatible with Toolset Checkboxes field, Toolset Checkboxes field stores value in a serialized array, which is different from ACF checkboxes field, so it could not add the ACF Checkboxes Field to Types Control.

To avoid complications, you might consider to create a Checkboxes Field with Types plugin, and edit each post, setup the Checkboxes Field value manually.

#2014653

My issue is resolved now. Thank you!