• Resolved andersjh

    (@andersjh)


    I have an extremely simple form with a bunch of drop down selects. Various options result in different totals and it works perfectly without issue.

    However, If the user wants to just start over on the form, I added a reset button.
    The reset works great and clears all input fields. However, the calc field remains unchanged at the old calculated value.

    So I thought no biggie, just javascript to the rescue, I can get reset to display 0 very easily with jquery. But… calcs don’t work properly anymore.

    In fact just by default, once you hit reset you’re screwed on calc fields period.

    This is an EXTREMELY simple form not connected to anything. I can easily export it so you can import it and duplicate the problem.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter andersjh

    (@andersjh)

    spent at least 8 hours trying different options (always using magic tags) and NEVER got a single error on php or javascript except when trying full javascript if () { calc } else { 0 } calculation.

    Tried:
    Conditions
    Calc groups
    custom calculations
    javascript tertiary operator/calc

    Of course I could do the “calcs” fully with javascript using the change event on my selects but then what’s the point of having a calc field and a reset button?

    Thread Starter andersjh

    (@andersjh)

    It also appears that toggles are not impacted by reset buttons either

    Thread Starter andersjh

    (@andersjh)

    I’ve reviewed some of your code and one the surface it doesn’t look like your code works at all with calculation and another factor is it seems to assume a default selection/class in many cases.

    I have no defaults of any kind in my form. Everything starts fresh.

    Hope that clarifies. I was going to modify your code but it would be much more simple to just use a simple html h3 tag and populate calculations with inner html

    Thread Starter andersjh

    (@andersjh)

    but of course html just puts me back to calculation fields just won’t work for my needs unless I have a stupid mistake in setup.

    And then if i have to work around CF enhanced functionality so much then cost / benefit starts to be questioned and the matter of spending money on premium support is irrelevant since the product itself won’t meet my needs without a bunch of custom javascript beyond what is reasonably expected.

    Plugin Contributor christiechirinos

    (@christiechirinos)

    Hi there,

    Thanks for using Caldera Forms, we appreciate you being a part of our community of form builders. I’m sorry to hear you’re experiencing this inconvenience.

    This is a known bug, as shown in our GitHub here: https://github.com/CalderaWP/Caldera-Forms/issues/2381. You can track the progress of this bug through that link, as well as add any additional information about your setup that might help us get to the bottom of this fast.

    I know this isn’t the best, but know that we’re always working on product fixes – to stay up to date, connect via our blog (https://calderaforms.com/blog/) and/or Twitter (@calderawp).

    Thread Starter andersjh

    (@andersjh)

    Thanks for the reply but issue above is not related based on my limited knowledge of your code. I have a form with pretty much nothing but drop down selects with no default value. There are 14of them but only 6 are required. So as I’m making drop down choices calc works great based on options I choose. But sometimes people just want to start over. I hit the reset button and all selects clear properly EXCEPT the calculation field. It stays at the last number and all future recalcs are wrong based on that. You can easily replicate. This has nothing to do with browser back and forth in my case

    Thread Starter andersjh

    (@andersjh)

    In general I love your product. Since your using bootstrap it would be very cool to include collapsible sections some how.

    Thanks for all your efforts

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Reset Button Does Not Reset Calculation Fields’ is closed to new replies.