Pull data from ACF into FF

By: Sam Rossetti | Asked: 08/27/2024
ForumsCategory: General questionsPull data from ACF into FF
Sam RossettiSam Rossetti asked 4 months ago
Hello, i have a custom post type in ACF for courses (title, description, dates, prices, etc.) and I want to create a subscription form in FF for these courses but fail to fathom how i could fetch ACF data into FF builder. Anyone with a hint to the right path? Is there a way to create FF forms directly from PHP without using the builder ? Thank you
Question Tags:
1 Answers
Victor Font answered 4 months ago
You don't fetch ACF data into the Formidable Builder. The Formidable ACF add-on works with the create post action to create and populate ACF based CPT's with data collected from a Formidable form entry. It sounds like you want to use ACF as a data source for lookup fields on your subscription form. You can do this with custom code you create to populate your subscription form's select values. You'll use these two hooks: https://formidableforms.com/knowledgebase/frm_setup_new_fields_vars/ and https://formidableforms.com/knowledgebase/frm_setup_edit_fields_vars/. They'll both use the same callback function you write using standard ACF code to bring it into Formidable's field values.
Victor Font replied 4 months ago

Now, for your second question, "Is there a way to create FF forms directly from PHP without using the builder?"

Yes, there is. But you really need to have a deep understanding of Formidable's architecture. There are no published resources on how to do this as far as I know. The articles and books I write for Formidable Devs cover advanced topics. I know of very few developers that may have this skillset.

I have no plans on my publishing calendar to even consider a how to article for programmatically building forms until sometime next year. The only thing that could accelerate that is if a paid project comes along that I can use as the model for the future how to column. That won't happen until after my current series on using Formidable to power Executive Business Intelligence Dashboards.

Sam RossettiSam Rossetti replied 4 months ago

Thank you so much for your - as always - very helpful answer Victor!
Regarding the article on "how to" building form programmatically i’d be really interested, will look forward to it. Maybe a patreon project ?

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right