This article requires the Gravity Forms Media Library perk.
Buy Gravity Perks to get this perk plus 46 other premium Gravity Forms plugins!
In this simple tutorial, we will show you how to map uploaded files or images to an Advanced Custom Field using the Gravity Forms Advanced Post Creation Add-On and GF Media Library. Let’s get started.
Looking to upload files to Advanced Custom Fields without the APC Add-On? We have an article that walks you through it.
- Add an Image or File Custom Field with Advanced Custom Fields
- Add File Upload Field to Your Form
- Set Up Advanced Post Creation Feed
Step 1 – Add an Image or File Custom Field with Advanced Custom Fields
Start by adding a File, Image, or Gallery Advanced Custom Field. Make sure to set the Return Value to File ID or Image ID.
Step 2 – Add File Upload Field to Your Form
Add a File Upload field to your form and activate GF Media Library in the Perks tab.
If you’re planning on mapping the field to an Image Gallery, check Enable Multi-File Upload in the General tab.
GF File Upload Pro
Step 3 – Set Up Advanced Post Creation Feed
Navigate to the Advanced Post Creation Feed settings and add a new Feed. Scroll down to Custom Fields and map your ACF custom field to your File Upload field.
If your Custom Field hasn’t been used before, it won’t be available in the Drop Down. Simply scroll to the bottom and select “Add New Custom Field Name”, then paste in the Field Name from the ACF Settings.
Once the field is mapped, any post created with the form will automatically map to the appropriate ACF field.
Did this resource help you do something awesome with Gravity Forms?
Then you'll absolutely love Gravity Perks; a suite of 46+ essential add-ons for Gravity Forms with support you can count on.
Martin Hult says
I’m doing it all. And the files are not uploaded to the media library nor adding to the custom field type I’ve med with the FileID.
I’ve created the Advanced Post creation feed and mapped every custom field to the correct value and so on. Just don’t get why I don’t get the files in side. The post is created and all the other data is coming over so to speak. But not the files.
Dario Space says
When testing locally it seems to be working. Have you installed GF Media Library Perk and activated it for the File Upload Field?
If you have an active Gravity Perks License, you can get in touch with us via our support form with your account email address and we’ll be happy to dig into this further.
This plugin looks amazing.
I’m working for a made-to-order sauna manufacturer. They’d like to attach images to an order, e.g.: * Customer’s sketch * Company’s Layout drawing * Company’s Elevation drawing
Question: So this Perk works in Woo Orders too, yes?
Side question: They’re looking at building a staffs’ dashboard. They’d go there to review orders with data like above + other functionality. Looking for any plugins/documents/videos that help create such WooC date dashboards — suggestion appreciated!
Also curious if there’s a plugin that puts order future production dates on a calendar. Thx in advance for any directions or pointers
Samuel Bassah says
We do not have a solution to put dates on a calendar or create WooCommerce Date Dashboards. Gravity Forms Advanced Post Creation Add-on is a product of Gravity Forms, so you may want to get in touch with their support to see if they have a solution for this. This however looks like something you’ll need some custom coding to achieve. In case you heed a developer you can hire one from codeable
Kevin Tutt says
Have you people actually tried this using ALL ACF fields? Like, this information really needs some fine tuning. this is not that simple.
Samuel Bassah says
Unfortunately, we’ve not tested ALL ACF Fields with this setup but this tutorial focuses on the use of a Single File upload field to upload a file to an ACF file field. We’ve received your ticket and I’ve replied to you. The issue you’re experiencing is partly because your ACF fields are within an ACF Group. Since you’ve sent a ticket, I will continue assisting you via the ticket.
Daniel Naef says
Is it possible to assign the upload(s) to the post, because now only the files are added to the media library, without an assignment to the created post.
Without using Media Library GP, i.e. only with the “core Post Creation Media Library setting”, the files will be associated with the post but not displayed within ACF :-(
Neither of these is usable for me, it either does not work with ACF or does not link the upload to the post
because I would like to use a pre-filled ACF (Gallery Field) and want to limit uploads to the active post in ACF fields, the missing assignment is a problem ;-)
Daniel Naef says
I can answer this for anyone with similar problem. Use this function: https://gist.github.com/helveticadomes/7a22ff705b803961f9145e14b9796625
Andrew Clark says
This might be a silly question but does this work for Pods Framework Pods, too? If so, does it include all the Pods Types (post types, taxonomies, meta custom fields, table custom fields, advanced post types, etc)?
Ryan Donovan says
Hey Andrew, we recently made an update to our Media Upload plugin to have better support for the Pods custom fields. Mapping with a custom post type should work correctly. Of course, if you run into any issues, you are always welcome to reach out to us through our support. 😃