BMI Calculation - Part 2 | Community
Skip to main content
Answered

BMI Calculation - Part 2

  • October 22, 2022
  • 2 replies
  • 335 views

Hi everyone.

So I am doing a website for a client who is running a telehealth operation for weight loss. They are asking me to have a form created, as a quiz kinda setup to see if they would qualify for a weight loss prescription program, and this is where they collect credentials of potential patients height, weight, age, gender, medical conditions, etc. I am grateful that Typeform has the capability to do some pretty decent Conditional Logic options, and I saw another thread from before where someone did a BMI Calculator formula.

But here is where I’m stuck.

I need to find a way where, when I collect a person’s height and weight, a BMI number will be calculated in the background, and then that BMI number will determine eligiblity based on further questions they are asked, where certain BMI numbers will not qualify for their program.

I see that someone was able to make a BMI fomula work successfully, but it creates the end point of saying “Your BMI number is ____” and I need it to go further than that.

Is it possible that I am asking too much from Typeform’s capabilities, or do I need some help in cracking the code to make it happen?

One possible alternative that we had in our discussion was making the age, height, and weight answerable in “ranges” rather than whole numbers, and then using the parameters to determine the outcome of their eligibility, but I would really like to find a way to make this work.

If anyone has any suggestions or advice for me, I would be very grateful to gain insight into your wisdom.

Best answer by john.desborough

@brettkennedy - yeah there are a few posts about how to calculate BMI figures in here

you CAN calculate the BMI figure in the background using logic rules and then use other logic rules to determine the path for the user to follow through questions. something like this: (i assumed a variable called v_BMI used for the calculation of the metric)

  • if v_BMI is greater than or = 29 then go to question 7
  • if v_BMI is greater than 23 and less than 29 go to question 12

pretty simple.. 

 

View original

2 replies

john.desborough
Forum|alt.badge.img+6
  • Certified Partner & Champion
  • 5296 replies
  • Answer
  • October 22, 2022

@brettkennedy - yeah there are a few posts about how to calculate BMI figures in here

you CAN calculate the BMI figure in the background using logic rules and then use other logic rules to determine the path for the user to follow through questions. something like this: (i assumed a variable called v_BMI used for the calculation of the metric)

  • if v_BMI is greater than or = 29 then go to question 7
  • if v_BMI is greater than 23 and less than 29 go to question 12

pretty simple.. 

 


  • Author
  • Explorer
  • 1 reply
  • October 22, 2022

Oh great! Thank you so much I’ll take a look into it. I had a feeling there was a way to go about it, and this is my first time dealing with conditional logic in forms, so I very much appreciate the feedback.


Reply