🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

Gravity Forms Meta Box Integration Premium Add-on Setup Guide

Updated 12 min read Gravity Forms Integrations A–Z
On this page
  1. Video walkthrough
  2. What You Get
  3. Requirements
  4. Quick Start
  5. Step 1: The Post
  6. Step 2: Map the Meta Box Fields
  7. Choices
  8. Dates and times
  9. Files and images
  10. Group fields and cloneable fields
  11. Relationships and terms
  12. Update Mode: the Owner Edits Their Post
  13. Prefill and Choices
  14. Save Fields of the Logged-in User
  15. Merge Tags, Notes and the Entry View
  16. Privacy and Safety
  17. Frequently Asked Questions
  18. Do I need a paid Meta Box license?
  19. Does it work with custom post types made with Meta Box?
  20. Can a form create a post and also update posts?
  21. What happens when a value does not fit the field?

Video walkthrough

Gravity Forms Meta Box: Create and Edit Posts with Meta Box Custom Fields (Free Meta Box Plugin)
Watch the Meta Box Integration add-on create a post with Meta Box custom fields from a Gravity Forms entry and let its author edit it in a prefilled form. Watch on YouTube

The Meta Box Integration add-on connects Gravity Forms to the free Meta Box plugin from wordpress.org. A feed creates or updates a post of any post type, or saves custom fields of the logged-in user, and fills every custom field that Meta Box defines for that post type. It knows the type of each field, so a drop down, a date, a gallery, a relationship or a group of repeated rows is saved in the form Meta Box expects, not as loose text.

A front-end Gravity Forms edit form for a property listing, already filled with the values saved in the Meta Box custom fields of the post: price, type, extras, dates and the rows of the rooms list
The owner opens the edit form and every mapped field is filled from the Meta Box values of the post.

Without it you map form fields to custom fields by typing the key of each one, and values such as a checkbox list, a date format, an image or a repeated group end up in the wrong shape. With it, the feed lists the fields of the meta boxes that belong to the post type, you pick the form field for each, and the add-on does the conversion. Everything is written through the Meta Box function rwmb_set_meta, so the storage the meta box chose is the one used, whether that is post meta, a custom table or user meta.

What You Get

  • A feed with three actions: create a post, update a post that the owner edits through a prefilled form, and save user fields of the logged-in user.
  • Any post type, including custom post types made with Meta Box or with code. Status, author, title, content, excerpt, featured image and taxonomies are set in the feed, and merge tags work in the title, content and excerpt.
  • A field map that is loaded from the post type: one section for every meta box, one drop down for every custom field. Display-only fields such as dividers and headings are left out.
  • Type-aware conversion for text, number, e-mail, web address, colour, rich text, choices, switches, dates, times, relationships, taxonomies, key value pairs, lists and maps.
  • Files and images from File Upload fields are copied into the Media Library, attached to the post and saved as attachment ids, the way Meta Box stores them.
  • Group fields and cloneable fields, filled from a List field: one clone per row.
  • Prefill: form fields are filled from the saved Meta Box values of a post or of the logged-in user.
  • Fill the choices of a Drop Down, Radio or Checkbox field from the options of a Meta Box select, radio or checkbox list field.
  • An ownership check for the update action, merge tags for the new post, entry notes, conditional logic and a clear notice when Meta Box is missing or too old.

Requirements

You need Gravity Forms 2.9 or newer, WordPress 6.5 or newer, PHP 7.4 or newer, an active license key and the free Meta Box plugin, version 5.0 or newer (built and tested with Meta Box 5.15.3). Some Meta Box features come from separate Meta Box extensions: meta boxes for users need MB User Meta, group fields need MB Group, and custom tables need MB Custom Table. The add-on detects them and shows what it found under Forms, Settings, Meta Box. It never needs them to run: when a meta box is registered, the add-on can fill it.

If Meta Box is missing or older than 5.0, a notice appears on the Gravity Forms screens and in the feed, and a submission leaves an entry note.

Quick Start

  1. Install and activate the add-on, then activate your license key under Forms, Settings, Meta Box.
  2. Open your form, go to Settings, Meta Box and add a feed. Keep the action on Create a post and choose the post type. The page reloads and lists the Meta Box fields of that type.
  3. Set the status, the author and the title. Use merge tags such as the form field that holds the property name.
  4. For each Meta Box field pick the form field that fills it. Leave the others on Do not save this field.
  5. Send a test entry. The entry note says which fields were saved, and the Meta Box box in the entry links to the new post.
The Meta Box feed settings of a Gravity Forms form: the post to create with its post type, status, author, title, featured image and taxonomy, then one section per Meta Box meta box with a drop down for every custom field, including the cloneable Rooms group
The feed of one form: the post settings, then every Meta Box field of the post type with the form field that fills it.

Step 1: The Post

The Post type list shows every type that has an editing screen, except attachments and the internal types of WordPress. Changing it reloads the feed so the field map matches the type. Post status is draft, pending, publish or private; anything else becomes a draft. Author is the logged-in user when there is one, otherwise the fixed author you choose, which can be nobody. A visitor who is not logged in never becomes the author by accident. The title, content and excerpt take merge tags, and the content is cleaned the way WordPress cleans posts written by users who cannot post unfiltered HTML. If the title ends up empty the post is called Entry followed by the entry number.

The featured image comes from a File Upload field, and each taxonomy of the post type has a setting for the form field that holds the terms: names, slugs or ids, from a choice field, a text field or a list. Terms that do not exist are skipped unless you turn on Create terms that do not exist yet.

Step 2: Map the Meta Box Fields

Every meta box attached to the post type becomes a section of the feed, with its own title, and every custom field in it becomes a drop down with the fields of your form. The list also offers the columns of List fields, the entry id, the id of the logged-in user and the date of the entry. A field that holds files only offers upload fields. The hint under each drop down says what the Meta Box field type expects.

Meta Box field type What the add-on takes from the form What Meta Box stores
text, textarea, hidden Any field. Several values are joined with a comma The text
email, url A text, e-mail or website field. A value that is not an address is skipped with a note The address
number, range, slider A Number or text field. Prices such as $1,250,000.50 or 1.234,50 are cleaned to a plain number The number
colour A text field with a hex or rgb colour The colour
wysiwyg A Paragraph field. HTML is kept The HTML
checkbox, switch Any field. Empty, 0, no, false and off mean off 1 or 0
select, radio, button group, select advanced A Drop Down, Radio or text field. The value or the label of the choice is matched to the options of the Meta Box field The option value
checkbox list, multiple select Checkboxes or a Multi Select. Every choice is matched to an option A list of option values
date, datetime, time A Date or Time field in any of its formats, or text such as 2026-10-22 The format of the field, a timestamp when the field uses timestamps, or its save format
post, user A text field with ids, titles, slugs, logins or e-mail addresses Ids
taxonomy, advanced taxonomy A choice or text field with term names, slugs or ids Term ids, and the terms on the post
file, image, image advanced, single image A File Upload field. Files are copied into the Media Library Attachment ids
key value, text list, fieldset text, map A List field with two columns, one row of a List field, a text field, or latitude and longitude The pairs, the list of texts, the keyed texts, the position
cloneable fields A List field column, a multiple choice field, or several files One clone per item
group, cloneable group One form field for each part of the group. A List field gives one clone per row One value for the group, or the list of clones

Choices

Gravity Forms stores the value of a choice, which is often different from the value Meta Box uses. The add-on first looks for an option with the same value, then for one with the same value in any letter case, then for one whose label is the same. So a Drop Down choice called Flat fills a Meta Box select whose option is flat, and a checkbox called Heat pump fills the option heat_pump when its label is Heat pump. Anything that matches nothing is skipped and listed in the entry note.

Dates and times

The add-on reads your Date field in the format you set in Gravity Forms and writes what the Meta Box field expects: text in its format, a timestamp (midnight UTC, the way Meta Box treats them) or its save format. A date that does not exist, such as February 30, is skipped with a note.

Files and images

For gallery, image, file and single image fields the add-on copies each uploaded file into the Media Library, attaches it to the post and saves the attachment ids. Only files that sit in the Gravity Forms upload folder are taken; an address on another site, or one that tries to climb out of the folder, is refused and nothing is downloaded. A file field that stays empty never removes the files that are saved. For galleries the feed can replace the saved files or add to them.

Group fields and cloneable fields

A group shows one drop down for each of its parts. Map the parts to the columns of a List field and every row becomes one clone of the group; a part that you map to a single field gets that value in every clone. A cloneable text, number or choice field takes a List column, a multiple choice field or several files and makes one clone for each item. Empty clones are dropped and the maximum number of clones of the field is respected. Groups come from the MB Group extension; the add-on writes the value the way that extension stores it, as one list of clones in a single meta row.

Relationships and terms

Post fields take ids, slugs or titles and check the post type the field allows; user fields take ids, logins or e-mail addresses; taxonomy fields take term ids, names or slugs and also put the terms on the post. Anything not found is skipped and listed.

Update Mode: the Owner Edits Their Post

Choose the action Update a post to let people change a post that they own through a Gravity Forms form. Add a Hidden field to the form and choose it as the field that holds the post id. Link people to the form with the post id in the address, for example your edit page followed by the parameter gfmb_post and the id. When the visitor is logged in and is allowed to edit that post, the form is filled with the saved Meta Box values and the hidden field receives the post id. When they send the form, the same post is updated.

  • Ownership. By default only the author of the post may update it. You can also allow everybody who can edit the post, such as editors.
  • Checked twice. The check runs when the form is shown and again when it is sent. If somebody changes the hidden field to another post id the form shows an error and nothing is saved; if it slips through, the feed refuses and writes a note.
  • Type check. The post must belong to the post type of the feed. Posts of other types, trashed posts and ids that do not exist are refused.
  • Keep or clear. A mapped field left empty keeps the saved value by default, or clears the Meta Box field when you choose to.

Prefill and Choices

Prefill is a setting of the feed. Besides the post in the address (checked for ownership) it can use the post of the page that shows the form, when the visitor may read it, and for user feeds the logged-in user. Text, number, choice, date, time, List and Hidden fields are filled; a Date field is filled in its own format. File fields are never prefilled.

The Fill choices from Meta Box options section turns a Drop Down, Radio or Checkbox field into a live copy of the options of a Meta Box select, radio, checkbox list or button group field. Change the options in Meta Box and the form follows. The choices are applied again when the form is validated, so a submitted option passes.

Save Fields of the Logged-in User

The action Save Meta Box fields of the logged-in user lists the fields of meta boxes made for users and writes them to the person who sent the form. If nobody is logged in nothing is saved and the entry gets a note. Meta boxes for users are provided by the MB User Meta extension; the add-on writes through Meta Box, so the extension decides where the values go.

Merge Tags, Notes and the Entry View

A Gravity Forms entry page with the entry note that says which property was created and which Meta Box fields were saved, and the Meta Box box with a link to the post
The entry note lists what was saved and what was skipped, and the side box links to the post.
  • {metabox:post_id}, {metabox:post_url}, {metabox:edit_url}, {metabox:post_status} and {metabox:post_title} work in notifications and confirmations that are sent after the feed ran.
  • {metabox:meta:FIELD_ID} gives the saved value of a Meta Box field of the new post as plain text, for example the price. All values are escaped.
  • Every run adds an entry note with the post, the fields that were saved, the fields that were skipped and why.
  • The entry view has a Meta Box box that links to the post and shows its status.

Privacy and Safety

Nothing is sent to another service; files are copied inside your own site. Post content is cleaned with the WordPress rules for untrusted users, a visitor who is not logged in never becomes the author, only files from the Gravity Forms upload folder are copied, and ids typed in a form are checked before use. Uninstalling removes the add-on options and entry meta; posts, users and Meta Box values stay.

Frequently Asked Questions

Do I need a paid Meta Box license?

No. The free Meta Box plugin is enough for posts. User fields, groups and custom tables come from separate Meta Box extensions, and the add-on uses them when they are present.

Does it work with custom post types made with Meta Box?

Yes. They are ordinary post types, so they appear in the Post type list, and so do their meta boxes.

Can a form create a post and also update posts?

Yes. Add one feed for each action. A feed can have conditional logic, so one form can decide which one runs.

What happens when a value does not fit the field?

It is skipped, the rest is saved, and the entry note tells you which field and why. Nothing is saved as loose text in a field that expects a number, a date or an id.

Custom fields are most useful when they are filled in the right shape. With a feed that knows the Meta Box types, a Gravity Forms form becomes a front door for posts, listings, profiles and anything else you built with Meta Box.

See the Meta Box Integration add-on

Still need help?

Our support team answers tickets every day, usually within a few hours.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr