is there an easy way to hook into an ACF form submission to do the following:
set the firstname/lastname fields as the post title
use the other field info to submit the info to mailchimp via API (if a checkbox for updates is checked)
just need pointed in the right direction; I’m sure this is possible just not sure how to handle it
You should take a look at the acf/pre_save_post hook along with the information on acf_form, although I’m not familiar with submitting to mailchimp. You’d need to get the values submitted through the acf_form and then construct the values you want to send to the API in your pre_save_post function.
http://www.advancedcustomfields.com/resources/acf-pre_save_post/
http://www.advancedcustomfields.com/resources/acf_form/
I found it – exactly that. Didn’t know it wouldn’t work in the form itself (requires an action in the functions.php)
Thanks!
Hi,
I have a “subscribe to our newsletter” checkbox in a front end form and am trying to pass the email to Mailchimp – any chances you could share how you got this to work?
Thanks!