Hello,
Is it possible for a button or event to initiate two calculations that correspond with each other. Sorry if I am not explaining this well but I will give an example of a code that isn’t working how I would like it to.
export function button1_click(event) {
$w( “#text1” ).text = (text2100).toFixed( 2 ).toString();
$w( “#text4” ).text = (text3100).toFixed( 2 ).toString();
$w( ‘#text5’ ).text = (text1+text4).toFixed( 2 ).toString();
}
So I want the calculations to be done for text1 and text4, then I would like the new totals of text1 and text4 to be shown in text5 after button1 is pressed. Currently text1 and text4 will show their totals but text5 will not show the totals of those two added together. I understand why this is not working how I would like it to but I’m sure there is some work around to make this possible.
Or is it somehow possible for a text to always show a total of desired text boxes, similar to a sum function in excel.
Thank you in advance for any help,