• Resolved taco100

    (@taco100)


    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

    • This topic was modified 5 years, 6 months ago by taco100.

    The page I need help with: [log in to see the link]

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

    (@georgemandis)

    Hi Tal,

    It’s always hard to troubleshoot without access to how the form is built. Offhand though, I’m noticing some extra curly brackets in your formula:

    **{**{value 3:1.3}*{just a 10...:3}

    Seems like an extra opening curly bracket?

    I would suggest starting there to see if that helps.

    Thread Starter taco100

    (@taco100)

    Thanks George,
    You are right – I did have an extra bracket…
    But it still doesn’t help ??
    Even this one doesn’t calculate anything for me:
    min(1,2)
    I could’t find any documentation or example so I can’t seem to understand if I’ve set it right.
    Tal

    Plugin Author George Mandis

    (@georgemandis)

    Oh, I forgot—the functions are case sensitive. They should be MIN and MAX.

    The closest thing to documentation is here, but I realize now that’s not explicitly stated:

    https://snaptortoise.com/wordpress/plugins/gravity-forms-minmax/

    Does that solve your problem? If you change “min” and “max” to “MIN” and “MAX” respectively?

    Thread Starter taco100

    (@taco100)

    Thanks…
    Well that was the issue ??

    Plugin Author George Mandis

    (@georgemandis)

    Glad that helped! Maybe I’ll fix that in a future release.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can’t get calculation to work’ is closed to new replies.