Advanced Custom Fields and Gravity Forms

AME picture AME · Apr 30, 2014 · Viewed 9.1k times · Source

I created custom post types and fields using Custom Post Types UI and Advanced Custom Fields plugin on my wordpress site.

My goal is to create a Gravity Form on the front end of my site which populates a custom post type.

I installed this ACF plugin for Gravity Forms: https://github.com/stormuk/Gravity-Forms-ACF-Field/

I attempted to link the custom fields I created w/ ACF to the Gravity Form by choosing Post Fields --> Custom Field in the form creation menu.

However, I am not seeing the custom field names that I created in ACF as options in the 'Existing' custom fields drop down selector. Instead, I see options like 'field_512512a14d', which doesn't match the custom field name I defined. Even if I select these strange field names, completing the Gravity Form does not populate a new post on the backend.

Can someone please advise on how to get this plugin to function correctly?

Answer

Wendell picture Wendell · Jun 22, 2017

I have noticed that I have to create at least one entry manually into the custom post type before ACF fields will appear in Gravity's existing fields dropdown menu.