Home › Forums › Front-end Issues › Easy Digital Downloads – Frontend Submission customisation ACF Fields › Reply To: Easy Digital Downloads – Frontend Submission customisation ACF Fields
Finally, I’ve managed to fix this myself.
As I’ve set the form option to false, I had to manually process the ACF fields (by checking the post variables) and update the field values using the ACF function update_field
.
Eg.
if ( !empty( $_POST['acf']['field_5ecb0c4663b4r'] ) ) {
$mood = $_POST['acf']['field_5ecb0c4663b4r'];
update_field( 'field_5ecb0c4663bf7', $mood, $post_id );
}
wp_ajax_fes_submit_submission_form
and wp_ajax_nopriv_fes_submit_submission_form
are the hooks that handles Easy Digital Downloads – Frontend Submissions add-on‘s form submission process.
I hope this will help someone looking for a similar solution.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.