Concatenate two fields in one text element

I actually found the above tutorial helpful but a little much for something super simple I wanted to achieve.

Hopefully this helps others wanting to do the same.

I essentially had two fields I wanted to concat together and output on the screen from a dataset of pleas1.


$w.onReady( function () {

$w( “#pleas1” ).onReady(() => {
$w( “#amounttotal” ).text = “” + $w( “#amountdonated” ).text + " / " + $w( “#amountneeded” ).text;
} );