Added a warning when a calculation formula references a Total field, which Gravity Forms does not support in calculations.
Corrigido
Fixed an issue where GP Advanced Calculations could produce different results before and after submission when calculations referenced an Address field's Country input on Gravity Forms 3.
Fixed an issue where conditional statements in a nested form would not work if the referenced child field shared its ID with a parent field.
Fixed an issue where alphanumeric product field values (e.g. B2, C3) were incorrectly converted to numbers in calculations, causing value mismatch errors in conditional statements.
Fixed an issue where conditional statements using the OR operator would evaluate as false when one of the referenced fields was left blank or conditionally hidden at submission, causing the result to become invalid.
Versão 1.1.18
1 de segurança
Segurança
Fixed an issue where conditionals comparing hex values in strings (e.g. "10x8") returned incorrect results due to formula security checks.
Versão 1.1.17
1 melhorado
Melhorado
Removed redundant check for Gravity Perks in preparation for Spellbook.
Versão 1.1.16
1 novo
Novo
Added Spanish translations. Credit: Rafael Soler of rafaelsoler.es
Versão 1.1.15
1 corrigido
Corrigido
Fixed an issue where negative numbers in certain calculations were not processed correctly, leading to inaccurate results.
Versão 1.1.14
1 novo1 corrigido
Novo
Added support for using the "Tab" key to add indents in the calculation field. Press the Escape key to unfocus the formula editor and enable tabbing to other field settings.
Corrigido
Fixed an issue where string values containing / could not be compared correctly in conditionals.
Versão 1.1.13
1 melhorado
Melhorado
Improved formula syntax validation.
Versão 1.1.12
1 corrigido
Corrigido
Fixed an issue where quotes around numbers in conditionals were not supported.
Versão 1.1.11
2 corrigidos
Corrigido
Fixed an issue where shorthand merge tags pointing to non-existent inputs would behave inconsistently.
Fixed issue where newlines inside elseif: conditions could cause an infinite loop. For example, elseif(newlines here):.
Versão 1.1.10
1 melhorado
Melhorado
Improved syntax validator by preventing { or } from being used in merge tag field labels. This will prevent formulas such as {Field 1:1} + Field 2:3} from being marked as valid. We recommend Merge Tag Shorthand if your field labels contain { or }.
2024
37 versões
Versão 1.1.9
1 corrigido
Corrigido
Fixed some currency-formatted values (e.g. 10,00 €) being treated as strings in if/elseif comparisons which would prevent operators such as < or > from working as expected.
Versão 1.1.8
1 novo
Novo
Added gpac_should_process_calculation JS filter hook that can be used to conditionally disable processing formulas. This can be used in snippets to increase performance of complex calculation forms.
Versão 1.1.7
1 melhorado1 corrigido
Melhorado
Improved formula validation to mark nested if statements as invalid. They are unsupported, but would show as valid.
Corrigido
Fixed formula validation issues with modifiers in merge tags containing underscores (such as {:1:choice_label}).
Versão 1.1.6
1 novo1 corrigido
Novo
Added PHP version of gpac_should_clean_merge_tag_value.
Corrigido
Fixed issue where setting gpac_should_clean_merge_tag_value would not always ensure that non-numeric values are quoted.
Versão 1.1.5
2 corrigidos
Corrigido
Fixed regression concerning using product prices in formulas
Fixed issue with conditional logic where empty strings inside conditions could create odd results on initial load. Additionally, comparisons between numbers and non-numeric strings has been made more consistent.
Versão 1.1.4
1 novo
Novo
Added support for multi-line conditionals.
Versão 1.1.3
3 corrigidos
Corrigido
Fixed issue where decimal comma numbers would be treated as strings in some formulas.
Fixed issue with unicode characters used in string comparisons.
Fixed issue where partially numeric values (e.g. number ranges with dash, Zip + 4, etc.) could get treated as numbers rather than strings in conditional statements.
Versão 1.1.2
2 novos1 melhorado
Novo
Added support for new :choice_label modifier to explicitly get the label from a choice in a formula as Advanced Calculations will default to getting the value of the choice. :label is for getting the label of the field itself.
Added test_complex_calculations.cy.ts
Melhorado
Refactored calculation logic to resolve regressions including the :value modifier not being used by default as well as addressing currency-formatted numbers being treated as strings in some cases.
Versão 1.1.1
1 corrigido
Corrigido
Fixed regression where currency values could be treated as strings resulting in incorrect calculations.
Versão 1.1
1 novo
Novo
Added support for comparing strings in if / elseif statements.
Versão 1.0.23
1 corrigido
Corrigido
Fixed issue where values starting with 0 could get evaluated as octals.
Versão 1.0.22
1 corrigido
Corrigido
Fixed JavaScript error in the form editor if using Firefox that could cause the merge tag selector to not initialize.
Versão 1.0.21
2 novos
Novo
Added new gpac_functions PHP and JavaScript filter hooks for adding custom functions.
Added trigonometric functions: sin, cos, tan, asin, acos, atan.
Versão 1.0.20
1 corrigido
Corrigido
Fixed issue where Merge Tag Shorthand would not calculate when a key is pressed at consistent times on some devices.
Versão 1.0.19
1 corrigido
Corrigido
Fixed issue where max and min could calculate as 0 during submission if only given one parameter.
Versão 1.0.18
1 melhorado1 corrigido
Melhorado
Improved error handling when improper parameters are provided to functions such as min, max, etc.
Corrigido
Fixed an issue where calculations encountering division by zero would throw an error instead of returning 0.
Versão 1.0.17
1 melhorado
Melhorado
Updated the "Validate Formula" override to be more robust which fixes an issue with it not after Gravity Forms 2.8.2.
Versão 1.0.16
1 corrigido
Corrigido
Fixed issue where Merge Tag Shorthands would use pricing field choice values instead of prices which does not match the default Gravity Forms behavior nor how it would be handled after submission. If you wish to use a pricing field choice's value, you will need to switch from the shorthand to a full merge tag with a modifier such as {:1:value}.
Versão 1.0.15
1 corrigido
Corrigido
Fixed another issue where omitting a leading zero on a decimal would cause calculations to not work as expected.