PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Integrating BMI calculator

  1. Hello,

    Is it possible to integrate a BMI calculator into a form, with conditional logic? e.g. the user would calculate their BMI, and then if it was over a certain number they would see an error message, if it was under then they would be able to fill in the rest of the form.

    The BMI calculator would be something like this: http://www.javascriptsource.com/math-related/metric-bmi-calculator.html

    Many thanks.

    Posted 12 years ago on Monday April 2, 2012 | Permalink
  2. What if you place this BMI calculator above the form, separately. So the user finds out their BMI with that script. Then in your Gravity Form below you can have a field labeled: Your BMI: and then you can use our less than conditional logic to display the appropriate fields below for them to fill out if it is under or show a message instead (using our HTML field and greater than conditional logic) if it's over.

    Posted 12 years ago on Monday April 2, 2012 | Permalink
  3. Hi Rob,

    Thanks for replying. I think we're going to need to integrate the calculator into the form itself, however having it outside the form can be our backup plan.

    Thanks again!

    Posted 12 years ago on Tuesday April 3, 2012 | Permalink
  4. I actually was looking to do something similar and ended up writing this post http://www.bloggingfromscratch.com/wordpress-tutorials/gravity-forms-custom-calculator/. You could probably do something similar and use the conditional logic in addition.

    Feel free to get in contact with me if you want some help with it.

    Posted 11 years ago on Tuesday May 29, 2012 | Permalink
  5. Gravity Forms also has built-in calculation ability now. You may be able to achieve it as well using number fields with calculation.

    Posted 11 years ago on Tuesday May 29, 2012 | Permalink