Home › Forums › General Issues › Auto increment number field from front end button › Reply To: Auto increment number field from front end button
Sure, you can make use of the update_field function. Take a look at the docs to see how it works.
Basically, you can attach some JS to the button which sends of an AJAX request to an action (which you can setup in your functions.php – please see WP docs for this) and then use the get_field function to load the value, and he update_field function to set the new increased value
Thanks
E
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.