Hi I’ve designed a real estate website for my small company. In my rentals page, I would like to show if a property is leased instead of removing it from the website. As a few properties haven’t been leased how do I remove the shape and text of the image that has not been leased. I’m new to wix, so I don’t have an understanding of coding. Thanks
You didn’t write if the repeater is connected to a database or fed manually.
Let’s assume it’s connected to a database where you have a field key named isLeased that can either get the value true or the value false.
In that case you can make your textbox (let’s call it “statusText”) collapsed by default and expand it in case isLeased === true:
$w("#repeater1").onItemReady( ($item, itemData, index) => {
itemData.isLeased ? $item("#statusText").expand() : $item("#statusText").collapse();
})