Home › Forums › General Issues › Can ACF doe this? › Reply To: Can ACF doe this?
If you need to save the total in the database, then I believe you can use the acf_form() function. Please check these pages to learn how to use it: https://www.advancedcustomfields.com/resources/create-a-front-end-form/, https://www.advancedcustomfields.com/resources/using-acf_form-to-create-a-new-post/.
You can also do the calculation in the acf/save_post action hook and use the update_field() function if you want to save it in a custom field.
I hope this helps 🙂
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.