I am new to wix and not having much luck finding answers or understanding the post I have came across. I need to hide a text element if the field in a dataset is empty.
The favSkinTreatmentfield is linked to my Teams Dataset. If the team member has field in that data it would show
Favorite Skin Treatment: Facial
If the team member didn’t have a response for their favorite skin treatment I would like to hide the text “Favorite Skin Treatment”
// For full API documentation, including code examples, visit https://wix.to/94BuAAs
$w.onReady(function () {
//TODO: write your page related code here...
if ($w('#favSkinTreatmentfield').text === ""); {
$w('#text29').hide();
}
elseif {
$w('#text29').show();
}
}
});