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?
Important forum update
This forum is migrating to one unified Wix community forum starting July 26th, and will be read-only during the process.
Wishlist Page is the official platform for requesting new features. You can vote, comment, and track the status of the requested features.
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.