How to hide a container box on dynamic item page.

Hi Wasim:

I think Majid was giving you a generic example on how to show or hide an element in code based on a condition.

Let me try a different proposal.

I think if you look at the repeater (https://www.wix.com/code/reference/$w.Repeater.html) you will see that you can modify the repeater contents by setting the data set that the repeater uses.

So if you choose the repeater you want to use from “Lists and Grids”


Then what you can do is load the data for the page from your data collection using the filter you refer to and assign the array of results to this field of the repeater.

Another way to do this is to connect the repeater to a dataset…

Check out these docs for more information and other ways to use the repeater:

Hope this helps
Steve