• Hello,

    I am trying to calculate field values from gravity form.

    But I get a 0 value.

    Total cost :?[calculate]{Price:84}+{Taxes:87}[/calculate]

    If I type values, it works.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author bhagwad

    (@bhagwad)

    Hi. The curly brackets inside won’t work. You need to use shortcodes with square brackets [] .

    Thread Starter mauriciopluri

    (@mauriciopluri)

    Sorry still get “0”

    I tried these but still “0”

    [calculate][Price:84]+[Taxes:87][/calculate]

    [calculate][{Price:84}]+[{Taxes:87}][/calculate]

    [calculate][{Price:84}+{Taxes:87}][/calculate]

    Thanks,

    when I insert a fiels from the side menu I always have the {} and it works. The field value is good.

    Thanks

    Plugin Author bhagwad

    (@bhagwad)

    There’s something weird about the Gravity form expressions you’re using. “[Price:84]” isn’t a shortcode, it’s something else.

    Here’s what a Gravity form shortcode should look like: https://docs.gravityforms.com/shortcodes/

    Let me know if this helps!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Calculating value in gravity form’ is closed to new replies.