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.

Populate Metaboxes using GF

  1. Does anyone know how to update metaboxes using gravity forms. I have a front end form which updates a custom post and some custom taxonomies as well using the gravity + custom post plugin. This works really well.

    However I need to update a custom metabox as well using gravity forms and the custom post does not seem to support this atm. Does anyone know of a way to implement this?

    Cheers

    Posted 13 years ago on Wednesday April 27, 2011 | Permalink
  2. I'm not sure what you mean by a custom metabox? Typically custom metaboxes store data as custom fields so it would just be populating a custom field value. What is your custom metabox?

    Posted 13 years ago on Wednesday April 27, 2011 | Permalink
  3. I created a metabox for ingredients, since i needed to associate measurments with ingredients and quantity.

    Now I am trying to create a front end form to be able to post values into the metabox and I am using the Gravity Form + Custom Fields plugin to connect the front end form fields to the other additional custom fields, however, the values from the metabox does not appear in the custom fields dropdown.

    So I am wondering if there is anyway of associating the custom fields in the metabox with the frontend form?

    I hope that made sense :S

    Posted 13 years ago on Thursday April 28, 2011 | Permalink
  4. The value of the metabox doesn't appear in the custom fields drop down most likely because the key for that custom field has an underscore in front of it like so: _keyname

    These are considered hidden custom fields and we don't show hidden custom fields in the drop down just like WordPress doesn't show hidden custom fields in the custom field drop down when adding a custom field to a post using their custom field UI.

    You are going to have to determine what the custom field name/key is for that custom field by looking in your post meta table in your database. Then when setting up the Post Custom Field for that field you will have to not select the custom field name, but enter it instead.

    Posted 13 years ago on Thursday April 28, 2011 | Permalink