Known issue: When editing entries that have conditional calculations, the result may be incorrect

Suppose your form has one or more fields with conditional logic to control its visibility on the form, AND these fields are used in a calculation. In that case, you might experience a miscalculation when editing that form submission in Gravity Forms or GravityView.

Here's how this "bug" occurs

This is a simple form, it contains three Number fields:

Form editing interface showing fields for two numbers and a total, with a calculation bug context

The field "Number 2" should only show up if the value of the field "Number 1" is greater than 5:

Form settings with admin field label, default value, visibility options, and enabled conditional logic for number fields

And this field should capture the value of the field "Number 1" with the following calculation rule:

Field settings for number with calculation enabled and formula input options available

Our "Total" field contains a calculation rule to add the value of the field "Number 1" to the value of the field "Number 2":

Field settings with labels, number format, and a calculation formula for totals

Now, let's play with the form

Typing "5" results in a total of "5", which is correct since "5" is not "greater than 5" as we specified in our conditional logic for the field "Number 2":

Form showing incorrect calculation: Total does not change from input number 1. Submit button below

Typing 6 in the field "Number 1", results in the field "Number 2" showing up with the value of the field "Number 1":

Form showing incorrect total of 12 for inputs 6 and 6, indicating a calculation bug

Okay, everything is working as expected. So, let's get back to typing only "5" in the "Number 1" field and submitting the form.

Editing interface showing calculation error; entry #11364, Number 1 is 5, Total is 5

That's our entry (form submission). Now, on that same very page, let's just click on the "Edit" button and then on the "Update" button, which will show up without touching the values in the fields:

Entry form, leave "Number 2" blank; click "Update" to avoid calculation error in conditional calculations

And here's the outcome:

Calculation entry showing "Number 1: 5," "Number 2: 5," with a "Total" of 10

As we can see, the conditional logic for the field "Number 2" is completely ignored by Gravity Forms on this page. The same will happen when editing this same entry on GravityView.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us