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.

How to get the values of checkboxes

  1. I want to post checkbox data using garvity form

    I am not finding the field-type checkbox option while i am adding custom field (from post field option).

    or when I take checkboxes field from standard field option, it will not show 'Custom Field Name' for giving name of that field. and if we did not give the name the check box field, than how can we access that's value.

    I want to display checkbox data to another page,

    I am stucked, kindly help me,
    please!

    Posted 12 years ago on Thursday September 22, 2011 | Permalink
  2. Only the fields in the Post Fields toolbox create post data. So selecting the Checkbox field from Standard Fields is not going to have any post related options such as the custom field name.

    The Post Custom Field in Gravity Forms v1.5 does not support Checkboxes as a field type. This is primarily due to the fact Custom Fields are single value fields. They consist of a Name and a Value. They don't consist of a Name and multiple Values.

    HOWEVER Gravity Forms v1.6, which is available as a beta test release, does add Checkboxes as a field type option on the Post Custom Field. For each checkbox selected it creates a new custom field. So it creates multiple custom field records all using the same custom field name.

    This means that when utilizing a custom field like this, with multiple custom fields using the same name, you need to know how to display this properly on the front end of your site if you are displaying custom fields in your theme. Your theme needs to get all of them and loop through them to output the values.

    Posted 12 years ago on Friday September 23, 2011 | Permalink

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