Hi I have a very similar problem to the one above. I want to save calculations to a database but because the text boxes produce a .value amount they will not update to the database using a Submit button. Can anyone help. I want to save the value of someones bmi to the database.
export function BMI_click(event) {
let height = parseFloat($w(“#height”).value) * 0.01;
let weight = parseFloat($w(“#weight”).value);
let BMI = weight / (height * height);
console.log(“weight”, weight);
console.log(“height”, height);
console.log(“My BMI”, BMI);
$w(‘#txtBMI’).value = Math.round(BMI * 10) / 10;
}