Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author codepeople

    (@codepeople)

    Hi,

    I’m sorry, I don’t understand exactly the behavior you need in the form. Could you send me a detailed description, please?

    Best regards.

    Thread Starter jthomps123

    (@jthomps123)

    Sure. Please view this link:

    https://dev.eyestagedit.com/inm/place-an-order/

    WHen you enter numbers and choose a ‘package’ a running total for that section gets put up into the bar at the top/right. I’ve also used a little jquery to ‘deselect’ the package by clicking the description that lights up red adn to deselect the radio button.

    My issue, using jquery to uncheck the radio button does not ‘recalculate’ the fields dynamically using ajax.

    Is there a function I can add to that <div> using .click() to fire off the dynamic recalculation?

    Thanks!

    Thread Starter jthomps123

    (@jthomps123)

    OK i’ve figured a work-around. I put a ‘calculate-button’ into the form and hidden it via CSS. Then used jquery ($(‘#fieldname109_1’).trigger(‘click’);) to fire it off when clicking another element.

    If you have a more elegant way of starting the recalculate function please let me know. Thanks!

    Plugin Author codepeople

    (@codepeople)

    Hi,

    You have found a valid solution. Thank you for sharing.

    Best regards.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Hot to attach calculate function to object’ is closed to new replies.