Hi all!
This plugin has been closed as of December 26th, 2021. It stopped working with some recent updates to Gravity Forms and I don’t have the bandwidth to support it anymore.
The source code is available here:
https://github.com/snaptortoise/gravity-forms-minmax
I whole-heartedly support anyone forking the code and running with it.
Best,
George
FORMULA NOT VALIDATING
Every time I am trying to use either MIN or MAX in a formula I get the error below.
“There appears to be a problem with the formula.”
I get this every time when validating.
See the screenshots below.
ERROR when using MAX: https://prnt.sc/1zcv4pl
NO ERROR when deleting MAX: https://prnt.sc/1zcwfbr
All formulas work except when using MIN and MAX
Can you help?
I am using latest version of Gravity Forms Version 2.5.14, MIN/MAX plugin .4.1, latest version of WordPress 5.8.2, WooCommerce Version 4.7.2
Are there any known bugs that are creating problems with this plugin??
Thanks
]]>Hi,
suddenly this plugin is causing a price calculation to be 0. It was working fine, but now, i don’t know after what update(didn’t notice it until a customer told me), the result is 0. If i remove the min/max stuff from the formula, all is fine. The problem is, i need your plugin. Badly. Any chance you could take a look?
Thank you.
We’re currently seeing an issue with a very simple calculation we are using in a form field:
MIN({Total Amount:24},200000)
and when clicking the “Validate Formula” link in the form editor, it is saying “There appears to be a problem with the formula.”
This has been working for a long time and just stopped working. We recently updated GF to 2.5.10.
Is this a known issue? Thanks for taking a look at this!
Hello dear Snaptortoise-Team,
I use your plugin MIN/MAX and I think it’s amazingly useful. But I can’t use it because of a small error.
I’ve contacted the GravityForms support and they told me the following (quoted):
?Hello! I’ve given this a look and the issue seems to be related to the min/max formulas not running properly. I encountered the same issue after having imported your plugin to a local site and running the min/max plugin. I then copied a small subset of your fields to a new form and encountered the same. I then swapped the min/max formulas with basic formulas and the calculations ran properly. Please note that front-end calculations are re-run upon submission of the form (separately from those run for front-end rendering) so this is why you can see a discrepancy.“
Is there any way that you could update your plugin so the calculations will work properly? That’d be aswesome!
I’ve attached you a video explaining the problem in more detail:
https://vimeo.com/manage/videos/592200571/9c689f5a34
Thank you and best regards
Enrico Fricke
]]>Just checking to make sure the plugin is still being supported as the version compatibility and last update was more than a year ago. I tested it on a staging install and didn’t see any obvious errors other than the formula not validating.
]]>Hi,
I’m trying to calculate MIN of 9 fields. Each field relates to how old a child is. up to 9 fields are displayed based on “how many children do you have”
my MIN function in the calculation field looks at the entries of all 9 fields. If the user only has 2 children and enters ages for those children, the plugin seems to think the other 7 values are 0 rather than “null” therefore returning a 0 rather than the age of the youngest child.
A’m i missing something?
Thanks
Stuart
I am seeing 3 JavaScript error messages (“Uncaught ReferenceError: gform is not defined”) in my console when I open a Gravity Forms entry. They all seem to point to this plugins’s “check_formula”:
gform.addFilter( ‘gform_is_valid_formula_form_editor’, ‘check_formula’ );
function check_formula( result, formula ) {
Hey there,
I have the following syntax thats causing “there appears to be a problem with the formula”.
Each part of the calculation check out individually. The MAX works on it’s own, but as soon as you introduce the * {field:value} it dies.
Any idea what im doing wrong?
(MAX(0,{What year will this child leave Private Education:5:value}-{What School Year are they in?:2:value}+1))*{How much are the annual fees?:6}
Thanks
]]>Does this plugin add Max/Min functionality specifically to Number fields or also Product Fields?
]]>Hi,
I’m trying to multiply the lesser of two fields by one number and the difference between two fields by a different number
Is it possible to create a formula as follows
(MIN({field1},{filed2})*150) + (ABS({field1},{field2})*90) or
(MIN({field1},{filed2})*150) + ((MAX({field1},{field2})-(MIN({field1},{field2})*90)
Is there anyway to utilize this function to set a range for a calculated field?
I want the calculated field to be between >200 and <500. If not between I want it to set min amount of 200 and max 500.
Hi
Is it possible that using this plugin is the reason I get “The site is experiencing technical difficulties” message in website front-end in some cases?
It started since the installation, ans it doesn’t happen (so far) when the plugin is disabled.
Thanks
Tal
Hi
Thanks for creating the plugin.
I can’t seems to make the calculation work.
Here is an example: (https://www.nassau.co.il/test-temp/)
1. First field value is 10.
2. Second field have 3 options to choose from, and options no.3 value is 5.
3. The third field have the formula in it’s calculation:
=min({{value 3:1.3}*{just a 10...:3}, 30)
I also tried this:
min({{value 3:1.3}*{just a 10...:3},30)
But the result is always Zero even when I choose the third option when running the form:-|
do I have a mistake in the syntax I use?
Best
Tal
Hello, with Gravity Perks Nested Forms i can use merge tag like {:1:filter[7]}
In my case this gime to me a simple numbers of price exactly like this:
300,00 €
450,00 €
100,00 €
the list is excatly formatted like this.
Can you help me to use MAX({:1:filter[7]}) to find the highest of the list?
thank yo, daniele
]]>Hello very interesting plugin, how to get the field name that contain the highest number?
It’s possible?
Many thanks
]]>I get the following error
VM2817:1 Uncaught SyntaxError: Unexpected token )
at components.(/create-your-package/anonymous function).split.map (/wp-content/plugins/gravity-forms-minmax-master/gravityforms-minmax.min.js?ver=0.1.0:1:519)
at Array.map (<anonymous>)
at gravityforms-minmax.min.js?ver=0.1.0:1
at Object.doHook (gravityforms.min.js?ver=2.4.6:1)
at Object.applyFilters (gravityforms.min.js?ver=2.4.6:1)
at GFCalc.runCalc (gravityforms.min.js?ver=2.4.6:1)
at GFCalc.init (gravityforms.min.js?ver=2.4.6:1)
at new GFCalc (gravityforms.min.js?ver=2.4.6:1)
at HTMLDocument.<anonymous> (?state=Colorado&grow=1&processing=0&dispensary=0&distribution_delivery=0:535)
at HTMLDocument.dispatch (jquery.js?ver=1.12.4:3)
whenever I try to wrap the min or max functions in parentheses like so:
(1 + MIN(2,3))
When I leave them off, like so:
1 + MIN(2,3)
there is no problem.
It appears the MIN/MAX functions are limited to accepting single values, is that correct? I attempted the following calculation and encountered a javascript error.
MAX( {:14} / 4, {:15} )
I was able to get around this by first calculating {:14} / 4
in a separate field, then finding MAX
. Even so, thought I’d mention this as an improvement.
Thanks for this plugin! Just what I’m needing at the moment.
]]>Thanks for the plug-in. Definitely a much need function! It could potentially save me a lot of time on something I am working on. However it appears that it can only do the min/max of, at most, two merge tags. I’d like to be able to find the min or max of magnitudes more than that. Not sure the feasibility of this. Thanks!
]]>