I am trying to create a form, and within I have a custom field which I would like to be multiple selection checkboxes. But there is no option to do that?
Is there a way I can do that anyway?
I am trying to create a form, and within I have a custom field which I would like to be multiple selection checkboxes. But there is no option to do that?
Is there a way I can do that anyway?
Currently the Post Custom Field does not support checkboxes because Custom Fields are single value fields. They consist of a key and a single value.
However, post meta does support multiple rows of data using the same key so this is an enhancement we plan on adding in the future. But users would have to understand how to use post meta that has the same key, it requires looping through them in order to display them.
Is there a way to code a workaround so that the regular checkbox field can place create multiple custom fields all with the same key but the selected values?
gingram815:
I am trying to do the same.
One option is to use a regular checkbox field "A" for listing your options and then create custom field post field B and in the content use the dropdown to include the choices of A (which now appear on the list) make it Admin Only
Include all. In the field, only those selected will be saved. not as multiple fields of the same name, but as values in the same custom field... at least that's how it worked for me.
not ideal, but it works.... the problem is when trying to select various categories or tags.
Hope that helps you.
Here is an easier solution. http://www.gravityhelp.com/forums/topic/get-checked-checkboxes
thanks for pointing that out, I will try it out