Is your input type set to ‘Number’ in all input boxes ?
If not, please change it (click on each box, then select ‘Set Input Type’).
If this doesn’t help, please send the url of your site so I can check it.
Good day I have same problem please help me : i want to make addition in my data base collection in the field form like for example: input1 + input2 = input3
I’m still trying to figure this out. Please help. I have put the following code into my Page code on the page I want the multiplication to occur:
Essentially what I want to do is multiply two custom form inputs and display the product on the review page. It will help my customers choose the correct subscription based on what they filled out in the custom form. I will be multiplying #classDuration times #hoursWeekly to get the product #hoursMonthly. They are all number fields, so it should be working. Do I have to do this in a Public or Backend file, or can it be the Page code?
$w.onReady(function () {
let num = Number($w("#classDuration").value);
let num1 = Number($w("#hoursWeekly").value);
let num2 = Number ($w("#hoursMonthly").value)
let mul= (num*num1);
mul = parseFloat(mul);
$w("#hoursMonthly").value = " " +(num * num1);
});