Displaying text value

Hi guys, As I’m playing with Boolean field, I cant seem to get the if else function to display properly.

My code is as follow:
Basically, if value is true, it replace the textbox with Satisfied

$w.onReady(function( ) {
 let GBM2 = $w("#dataset1").getItems().te1;
if ( GBM2 === true) {
  $w('#text17').text = "Satisfied";
} else {
  $w('#text17').text = "Unsatisfied";
}
})

You probably meant to use .getCurrentItem() and not .getItems()

Thanks! It worked!

You’re welcome