Skip Navigation

[Closed] Multi select custom field

This support ticket is created 4 years, 2 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Author
Posts
#2073405

How can we add a Multi select custom field?

And the generic field in post forms are those being saved? Tried that and nothing is saving from that fields.

#2073603

How can we add a Multi select custom field?
Hello, Toolset Types does not currently offer a multiselect custom field type. The most similar field type is checkboxes group, which offers multiple options and allows the User to select one or more of these options.

And the generic field in post forms are those being saved? Tried that and nothing is saving from that fields.
Normally you would use a custom code snippet to capture the values submitted in generic fields and save those values somehow, either to a different Types custom field, a hidden custom field, or using some other custom solution like setting a specific taxonomy term, for example. We offer the Forms APIs cred_save_data and cred_submit_complete that can be used to check the values submitted in generic fields and save them using update_post_meta, wp_set_object_terms, or something similar:
https://toolset.com/documentation/programmer-reference/cred-api/#cred_save_data
https://toolset.com/documentation/programmer-reference/cred-api/#cred_submit_complete

https://developer.wordpress.org/reference/functions/update_post_meta/
https://developer.wordpress.org/reference/functions/wp_set_object_terms/

If you provide more information about what you would like to accomplish with a generic field, I can provide more guidance and relevant example ticket links.

The topic ‘[Closed] Multi select custom field’ is closed to new replies.