I would like to print only the following items if there are values in the textField but i can\'t find an answer to it. previously i used checkbox to var.isSelected() method