Hide or Show element

I am looking for some assistance here, how would I hide or show a grouped element based on a data base saying the words Yes or No

Yes to show
No to hide

if this cant be done is there a work around?

Hi Simon,
You can use show/hide method for grouped elements.
If it’s a dynamic page you can use getCurrentItem method.
It should look like this:

$w.onReady( () => {
  $w("#myDataset").onReady( () => {
    let itemObj = $w("#myDataset").getCurrentItem();
    if (itemObj.foo === "Yes") {
       $w('#group1').show();
    }
    else if (itemObj.foo === "No") {
       $w('#group1').hide();
    }
  } );

Good luck!
Roi.