Support » Plugin: Calculated fields for ACF » Update the calculated field

  • Resolved bartdenhartog


    I’ve created a ACF FORM without the form functionalities. I’ve 3 fields:

    Total price: [width+height*50]

    Is it possible that the calculated field(total price) automatically updates without switching to an another field?



Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author wundermatics



    We’re currently using the blur event (lost focus) for normal input fields and the change event for dropdowns to trigger recalculation in the front end. If I understand you correctly, You would also like to see the recalculation triggered by merely changing the value in a normal input field?

    Some background: The reason we use the above mentioned events to trigger is to keep the number of recalculations to a minimum. Since each recalculation makes an Ajax request to the server we want to avoid having a user accidentally trigger lots of recalculations as that would end up being queued on the server. Depending on your server performance, this would sometimes lead to a bad user experience.

    Perhaps this is an area where we could find a way to let the admin make the choice. We’d have to take this back to the drawing table to figure out how to solve it.

    In the meantime, we’re can also look into if there’s a way for you to trigger the recalculation yourself via a custom javascript. Would that be an interesting option?




    Thanks for your help but I already solved via Advanced Forms.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.