Title: Reset Button Does Not Reset Calculation Fields
Last modified: April 2, 2018

---

# Reset Button Does Not Reset Calculation Fields

 *  Resolved [andersjh](https://wordpress.org/support/users/andersjh/)
 * (@andersjh)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/reset-button-does-not-reset-calculation-fields/)
 * 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](https://wordpress.org/support/users/andersjh/)
 * (@andersjh)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/reset-button-does-not-reset-calculation-fields/#post-10136604)
 * 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](https://wordpress.org/support/users/andersjh/)
 * (@andersjh)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/reset-button-does-not-reset-calculation-fields/#post-10136609)
 * It also appears that toggles are not impacted by reset buttons either
 *  Thread Starter [andersjh](https://wordpress.org/support/users/andersjh/)
 * (@andersjh)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/reset-button-does-not-reset-calculation-fields/#post-10137207)
 * 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](https://wordpress.org/support/users/andersjh/)
 * (@andersjh)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/reset-button-does-not-reset-calculation-fields/#post-10137219)
 * 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](https://wordpress.org/support/users/christiechirinos/)
 * (@christiechirinos)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/reset-button-does-not-reset-calculation-fields/#post-10148253)
 * 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](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/](https://calderaforms.com/blog/))
   and/or Twitter (@calderawp).
 *  Thread Starter [andersjh](https://wordpress.org/support/users/andersjh/)
 * (@andersjh)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/reset-button-does-not-reset-calculation-fields/#post-10148347)
 * 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](https://wordpress.org/support/users/andersjh/)
 * (@andersjh)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/reset-button-does-not-reset-calculation-fields/#post-10148349)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/caldera-forms_475846.svg)
 * [Caldera Forms - More Than Contact Forms](https://wordpress.org/plugins/caldera-forms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/caldera-forms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/caldera-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/caldera-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/caldera-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/caldera-forms/reviews/)

## Tags

 * [calculations](https://wordpress.org/support/topic-tag/calculations/)
 * [reset button](https://wordpress.org/support/topic-tag/reset-button/)

 * 7 replies
 * 2 participants
 * Last reply from: [andersjh](https://wordpress.org/support/users/andersjh/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/reset-button-does-not-reset-calculation-fields/#post-10148349)
 * Status: resolved