This section provides detailed instructions on how to effectively create a BMI Calculator using the Nested Calculated Fields
Building a BMI Calculator with Nested Calculated Fields
Step-by-Step Guide:
Introduction:
The tutorial starts with an overview of using Calculated Fields within Calculated Fields to build a BMI calculator. This method involves converting user-inputted weight and height into BMI.
Gathering User Inputs:
Users are prompted to enter their weight in kilograms and their height in feet and inches through number fields and dropdowns.
Converting Units:
Weight Conversion: A Calculated Field converts the weight from kilograms to pounds using the conversion rate (1 kg = 2.2 pounds).
Height Conversion: Another Calculated Field converts the height from feet and inches to total inches.
Calculating BMI:
A final Calculated Field calculates the BMI using the formula: [weight in pounds]/([height in inches]^2)×703.
The tutorial provides detailed instructions on setting up these calculations within the form builder.
Enhancing User Experience:
To streamline the user interface, intermediate calculations (weight in pounds and height in inches) are hidden from the user.
The final output, BMI, is displayed in a user-friendly format, ensuring that the calculations are transparent and the interface remains clean.
Publishing and Testing:
The form is published, and the tutorial demonstrates entering data to showcase the BMI calculation in action.
Tips on hiding calculation fields from the user view to keep the form simple and focused on the end result are also provided.