Support » Plugin: Calculated Fields Form » TDEE Calculator Help

  • Resolved rumayor97

    (@rumayor97)


    Hello guys, I just downloaded the Calculated Fields Form Plugin on my WordPress website and I was wondering if there is a way for someone to help me build a TDEE (Total Daily Energy Expenditure) calculator. In short words, what a TDEE calculator does, is that it calculates the amount of calories your body needs every day to maintain your current weight. All you need to know is person’s weight, height, age, and activity level. Then you use a set formula with constants to calculate the TDEE.

    I already have all the fields needed but doing the calculations is where I have trouble. I don’t know in which fields I should add CSS code, and even if I knew where to add it, I wouldn’t know what to write in there lol. You guys can check my current calculator in the link I provided or just look this up on google:
    https://www.infinite-motivation.com/how-many-calories/

    Is there a way someone can help me out? Thank You!

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @rumayor97

    If you’ve doubts about customizing the form appearance, please, read the following post in the plugin’s blog:

    https://cff.dwbooster.com/blog/2020/01/12/form-design/

    If you need someone implement your project, we can offer you a custom coding service from our private website: Customization

    Best regards.

    Thread Starter rumayor97

    (@rumayor97)

    Are there any in-depth tutorials on how to use the functions of the plugin? I am not trying to change the appearance of the calculator, I want to implement some calculations and that’s it. Thanks!

    Plugin Author codepeople

    (@codepeople)

    Hello @rumayor97

    The plugin is distributed with five predefined forms you can use as the starting point to your project, like this one:

    https://demos.dwbooster.com/calculated-fields-form/ideal-weight-calculator/

    In the plugin, selecting the fields inserted in the form, the left bar will display their settings, the calculated fields include the “Set equation” attribute where the equations are defined.

    For example, assuming you want calculate the BMR based on the fields on your current form.

    The equation associated to the calculated field would be:

    
    IF(fieldname6 == 'Male', 66 + (13.7*fieldname3) + (5*fieldname4) - (6.8*fieldname7), 655 + (9.6*fieldname3) + (1.8*fieldname4) - (4.7*fieldname7))
    

    As you can see the process is really simple.

    I’m sorry but the support service does not covert the implementation of the users’ projects (forms or formulas). If you need additional help implementing your equations, please, contact us through our private website.

    Best regards.

    Thread Starter rumayor97

    (@rumayor97)

    Perfect! That is what I needed, I finally got it to work. If you could answer a last question, I’d appreciate it.

    How does the Calculate button work? If you look at my calculator now on my website is working, but is displaying the results along with the input. Is there a way to show a blank or 0 in the calculated field until the calculate button is clicked? What would I need to input in the field settings of the button to make this work? Thank you!

    Plugin Author codepeople

    (@codepeople)

    Hello @rumayor97

    If you want the equations be evaluated only when the calculate button be pressed, you should to untick the checkbox: “Eval dynamically the equations associated to the calculated fields” in the “Form Settings” tab:

    Best regards.

    Thread Starter rumayor97

    (@rumayor97)

    Worked perfectly! Thanks a lot!!!

    @rumayor97 Please share it for me, I need the same sample as you

    Plugin Author codepeople

    (@codepeople)

    Hello @seosach

    If you need a custom coding service to implement your project, you can contact me through my private website:

    https://cff.dwbooster.com/customization

    Best regards.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘TDEE Calculator Help’ is closed to new replies.