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.

Cannot pass GF checkbox values to ECPT fields

  1. When we try to pass multiple checkbox values to any fields in ECPT, including textarea fields, only the first variable is succesfully submitted. Is there a way to have a checkbox form element in the front end, but which submits a comma separated text list?

    Posted 11 years ago on Tuesday December 4, 2012 | Permalink
  2. Can you show us how you are trying to pass the values currently?

    Posted 11 years ago on Thursday December 6, 2012 | Permalink
  3. No special method, just choosing the custom field to populate in gravity forms. So I have a checkbox in the form with a number of possible values, which populates a custom field in a custom post type, both custom fields and CPT's have been created in ECPT plugin. The selected values in the form are not coming into the custom field, just the first checkbox value, nothing else. Have tried creating the custom field as text field, or also a checkbox but it doesn't make any difference, still the same result. I have talked to the ECPT creator and he says there must be an incompatibility between the way GF passes the field values into ECPT CF's. Anyone heard of this, or some way to work around it?

    Posted 11 years ago on Friday December 7, 2012 | Permalink
  4. zamson
    Member

    I've ran into a similar problem. I bet it's because Gravity forms saves multiple checkbox values as multiple custom fields (with same meta key) instead of a single custom field with multiple values as array. Popular CF-plugins always use array for storing multiple values.

    I'm trying to achieve this with using regular checkboxes in gravity forms and then populating with the after_submission hook from functions.php. Did you ever resolve this?

    Posted 11 years ago on Tuesday January 15, 2013 | Permalink
  5. @zamson, if you would like assistance with your issue, please begin a new topic and show the code you are using and a link to the form you're trying to use and we will try to help you there.

    Posted 11 years ago on Tuesday January 15, 2013 | Permalink