Home › Forums › Front-end Issues › Frontend form without submit › Reply To: Frontend form without submit
If you can modify the code where the WC form is displayed you can use acf_form() with the form option set to false. You will also not be able to use the WC hook and you’ll need to create an acf/pre_save_post action https://www.advancedcustomfields.com/resources/acf-pre_save_post/ to do the work otherwise ACF will go ahead and save the values to the order no matter what you do in the WC filter, and all you’ll really need to do in the filter (i think, don’t hold me to this) is to return the ID for the user like.
// this is just a guess
$post_id = 'user_'.$user_id;
return $post_id;
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’re reaching out to our multilingual users to ask for help in translating ACF 6.1. Help make sure the latest features are available in your language here: https://t.co/TkEc2Exd6U
— Advanced Custom Fields (@wp_acf) May 22, 2023
© 2023 Advanced Custom Fields.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.