Hi. I working in dynamic page where I try multiply value from input4 (quantity) and Imput2 (price) where outcome is send to imput6. all working fine but when submit values are send to database are correct a part of imput6.
my code:
export function input2_change(event) {
let qty1 = Number($w('#input4').value);
let price = Number($w('#input2').value);
$w("#input6").value += qty1*price
console.log((qty1*price))
}
Thanks,
G
Hi NajcargS,
It took a while but i found a solution. Seemslike an element isn't updated to the dataset if the element is filled by code. So i removed the link with the submit button, added the 2 elements to the dataset and saved it. This seems to be working fine. Kind regards, Kristof
Hello. Could you please provide a solution to the problem as I have the same
OMG!!!! You are a God, sir! Thanks for that!
Hi again. Thank you for helping me. I just make copy and I add you . The page is named Input. let me know If you find something wrong.
Can you build db on your pc and try with my code? Maybe my code is bad...
I swap to whole numbers and decimal on all inputs and this same.
I retype bad column sorry. on pic.1 you can see value of 6,00 and 8,00 and the connected to QtyXpaid and QtyXprice
QtyXpaid and QtyXprice that's columns where $w("#input6") is connected to.
On that page I don't have more code then this what I post.
Dataset. If this help when I retype the numbers then works fine.
Hi, I did but dont work :(
Hi NajcargS,
Just change the type setings of your text field to number should do the trick
Kind regards, Kristof