Support

Account

Home Forums General Issues Auto increment number field from front end button Reply To: Auto increment number field from front end button

  • Hi @chrismitchell

    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