home | products | customer | support | forums | contact
Sign in | Join |
in
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 06-27-2010 8:13

    is it possible: equation

    Hi

    Is it possible with fs to do equations?

    for example, I want to build a BMI calculator - to let the user to fill the weight and the height, and in the "thank you msg" to show the BMI (weight*height^2)

    Thanks

    Ilana

  • 06-28-2010 14:35 In reply to

    • Tom
    • Top 10 Contributor
    • Joined on 05-19-2007
    • Switzerland
    • Data Illusion

    Re: is it possible: equation

    Hi,

    yes you could display the BMI from the fields. What you would need to do is add two field based answer items to your questions set their piping alias to Weight and Height and then in the complection thank you message use following text :

    fscalc(([[Height]]*[[Weight]])^2)

    this will take the value entered by the user and display the result of it.

     

  • 06-29-2010 2:54 In reply to

    Re: is it possible: equation


     

    Hi Tom

    Thanks. that very cool.

    Is there a way I can put results of such calculations in a variables, and than to use is for conditions?

    for example, to calculate the BMI, and in the conditional massages, to show the calculate BMI +  a conditional text (you are anorectic, you are overweight etc)?  

    Is there a place where I can read more about the calculations options in the Help? I couldn't find.

    Thanks
    Ilana
  • 06-29-2010 15:53 In reply to

    • Tom
    • Top 10 Contributor
    • Joined on 05-19-2007
    • Switzerland
    • Data Illusion

    Re: is it possible: equation

    Hi,

    you would need to "cheat" using a hidden field in your survey where you would set its default value to the calculation one and then you can reuse that information with conditions. However note that the hidden field must be on a different page than the page requesting the values.

    There isnt a specific documentation on the calculation, however when you open the answer settings page you can click on the little FX icon which will open a calculator to create your expressions.

  • 06-30-2010 3:22 In reply to

    Re: is it possible: equation

    Thanks. I'll try this

    Ilana

Page 1 of 1 (5 items)
(c) 2008 Data Illusion. All Rights Reserved.