How to hide a container box on dynamic item page.

Hello Wasim,

To do that you would have to query the dataset specific to the dynamic page, get the relevant information regarding what you want to filter, and create a condition statement based off of the information you got from the dataset that hides and shows each container.

Get current item that the dynamic page is on -

 let itemObj = $w("#myDataset").getCurrentItem();  // get the current item

if(itemObj.gender === 'male') {  //condition
    $w('#maleContainer').show();  //show/hide containers based off of condition 
} else {
     $w('#femaleContainer').show();
}