PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Custom field - Checkbox

  1. deukdesign
    Member

    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?

    Posted 13 years ago on Friday March 25, 2011 | Permalink
  2. 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.

    Posted 13 years ago on Friday March 25, 2011 | Permalink
  3. 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?

    Posted 13 years ago on Sunday April 17, 2011 | Permalink
  4. mtprofiles
    Member

    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.

    Posted 13 years ago on Tuesday May 17, 2011 | Permalink
  5. Here is an easier solution. http://www.gravityhelp.com/forums/topic/get-checked-checkboxes

    Posted 13 years ago on Tuesday May 17, 2011 | Permalink
  6. mtprofiles
    Member

    thanks for pointing that out, I will try it out

    Posted 13 years ago on Tuesday May 17, 2011 | Permalink

This topic has been resolved and has been closed to new replies.