Hello,
I have i issue with the following.
i got a database with numbers and it’s connected to a user input box (input1) on a repeater.
on the repeater i got 2 input boxes called, input1 and input 2.
Code:
$w.onReady( function () {
let mysteryNumber = Number($w(‘#input1’).value); //input1 is the id of your input, change as necessary
let productNumber = mysteryNumber * 2;
console.log(productNumber);
console.log(mysteryNumber);
$w('#input2').value = productNumber; //outputBox1 is the id of your box, change as necessary
})
when input1 isn’t connected to the database the calculation works, but when it’s gets the data from the database it isn’t working.