I have zero experience with ACF. I’m looking to re-design a project that takes user input via a form, does some math based on what the user inputs and spits out a total.
Before I get too far down the road learning how to use ACF, will ACF Pro allow me to do this?
I’ve been looking through the documentation and it seems I should be able to perform any of the calculations by defining variables as the value of one of my custom fields.
Any thoughts?
Hi @signalwarrant
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 🙂
Thanks, James.
I’ll have a look at the docs and see what I can come up with.