Stop a negative number field calculation [RESOLVED]

I have a number field, set to display a calculated value, with the format set to “Currency”. Is there a way to stop this field showing a negative value? The amount shown and submitted cannot be less than £0.

Many thanks in advance.

There’s a filter that you could use to alter the calculation result with your own code: gform_calculation_result - Gravity Forms Documentation

An easier approach if you don’t have coding experiencing could be using this other filter to validate the value for the field and make the form fail validation if the value is negative: gform_field_validation - Gravity Forms Documentation

1 Like

Thank you Samuel. Went with the gform_calculation_result filter and it looks like it’s doing what we want it to!

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.