• Resolved bartdenhartog

    (@bartdenhartog)


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

    Width
    Height
    Total price: [width+height*50]

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

    Thanks,

    Bart

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

    (@wundermatics)

    Hi,

    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?

    Thread Starter bartdenhartog

    (@bartdenhartog)

    Hi,

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

    Hi!
    Im interested in the js for the ajax recalculation!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Update the calculated field’ is closed to new replies.