Title: Problem with Syntax
Last modified: December 19, 2019

---

# Problem with Syntax

 *  Resolved [gingerstu](https://wordpress.org/support/users/gingerstu/)
 * (@gingerstu)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/problem-with-syntax/)
 * 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

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [George Mandis](https://wordpress.org/support/users/georgemandis/)
 * (@georgemandis)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/problem-with-syntax/#post-12263532)
 * Hi [@gingerstu](https://wordpress.org/support/users/gingerstu/),
 * Hmm. You might not be doing anything wrong. It seem that the validation function
   might be failing correctly… I have a few followups;
 * – What version of Gravity Forms and what version of GF MIN/MAX?
    – Does the formula
   function correctly on the site and/or in the form preview? – Have you tried removing
   the question mark from field #2 (“What School Year are…”)? I don’t think that’s
   the issue, but it’s the one thing that jumped out at me that might be making 
   the parser choke. Alternately, can you multiply it by a different field that 
   does not have a question mark in the label?
 * The formula validator was broken and unfixable for a while, and I think the last
   update I pushed addressed this. I haven’t had many opportunities to test it or
   hear feedback from people on it though, so it’s possible we found a bug.
 * Best,
    George
 *  Plugin Author [George Mandis](https://wordpress.org/support/users/georgemandis/)
 * (@georgemandis)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/problem-with-syntax/#post-12995515)
 * Hi [@gingerstu](https://wordpress.org/support/users/gingerstu/),
 * I’m going to close this issue for now. If you still need help here feel free 
   to reopen it.
 * Thanks,
    George

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Problem with Syntax’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/gf-minmax-calculation_b48fd7.svg)
 * [Gravity Forms MIN/MAX Calculation](https://wordpress.org/plugins/gf-minmax-calculation/)
 * [Support Threads](https://wordpress.org/support/plugin/gf-minmax-calculation/)
 * [Active Topics](https://wordpress.org/support/plugin/gf-minmax-calculation/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gf-minmax-calculation/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gf-minmax-calculation/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [George Mandis](https://wordpress.org/support/users/georgemandis/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/problem-with-syntax/#post-12995515)
 * Status: resolved