Skip Navigation

[Resolved] Programmically add checkboxes to a checkbox group

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.

This topic contains 1 reply, has 2 voices.

Last updated by Minesh 4 years, 1 month ago.

Assigned support staff: Minesh.

Author
Posts
#561985

I want to have checkboxes in a checkbox group as user fields based on cpt custom taxonomy.
Similar like adding select options to a select drop down list.
Is there a filter like 'wpt_field_options' but for checkboxes?

Thanks in advance

#562041

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Well - Types checkboxes field is special field as it stores the option values as a serialized array which is hard to manipulate and access.

Basically, there is no such native feature available as it needs custom programming which is eventually out of the scope of our support policy. If you need custom programming for your site, please don't hesitate to contact our certified partners.
=> https://toolset.com/consultant/

However - I can suggest you one way to store multiple values for single field but you need to check if that fits into your requirement. You should create a textfield and set it as "Allow multiple-instances of this field", I mean repeating field by that way you can store multiple values for the single field.
=> https://toolset.com/documentation/user-guides/repeating-fields/