• Resolved uamv

    (@uamv)


    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.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author George Mandis

    (@georgemandis)

    Thanks for the feedback! I think I found the fix and just pushed an update. Let me know if that’s working for you? You’re welcome to submit pull requests here:

    https://github.com/snaptortoise/gravity-forms-minmax/issues

    • This reply was modified 5 years, 10 months ago by George Mandis.
    Thread Starter uamv

    (@uamv)

    Awesome! Thanks for the speedy response and fix! Works for me now. However, I did notice that if I format the calculation as follows (w/ parentheses around the argument –?which may also be a common format), then the error remains.

    MAX( ( {:14} / 4 ), {:15} )

    Also, thanks for the Github link. Starring it now.

    Plugin Author George Mandis

    (@georgemandis)

    I think it might actually be the extra set of parentheses that it’s choking on? I think I can push a fix for this soon though!

    Thread Starter uamv

    (@uamv)

    Yeah, w/o that extra set it now works well. Just wanted to mention this as someone is bound to encounter it down the road. Thanks!

    Plugin Author George Mandis

    (@georgemandis)

    Thanks for your feedback and testing! I posted another fix should be more flexible now going forward.

    Thread Starter uamv

    (@uamv)

    Excellent. Thanks for your work!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Calculating Within Function’ is closed to new replies.