# Trying to prevent video players to repeat in all the items of a dynamic page. I pasted the velo code and it seems right but the same video appears in every of the 42 items even if the url is in the specfic video url field

**URL:** <https://forum.wixstudio.com/t/trying-to-prevent-video-players-to-repeat-in-all-the-items-of-a-dynamic-page-i-pasted-the-velo-code-and-it-seems-right-but-the-same-video-appears-in-every-of-the-42-items-even-if-the-url-is-in-the-specfic-video-url-field/78755>\
**Category:** Ask the community\
**Tags:** question, cms, code, wix, wix-studio\
**Created:** [June 27, 2026, 12:46am UTC](https://forum.wixstudio.com/t/trying-to-prevent-video-players-to-repeat-in-all-the-items-of-a-dynamic-page-i-pasted-the-velo-code-and-it-seems-right-but-the-same-video-appears-in-every-of-the-42-items-even-if-the-url-is-in-the-specfic-video-url-field/78755 "2026-06-27T00:46:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alain\_Antoine\_Turgeo](https://avatars.discourse-cdn.com/v4/letter/a/4491bb/32.png) [@Alain\_Antoine\_Turgeo](https://forum.wixstudio.com/u/Alain_Antoine_Turgeo)\
**Post date:** [June 27, 2026, 12:46am UTC](https://forum.wixstudio.com/t/trying-to-prevent-video-players-to-repeat-in-all-the-items-of-a-dynamic-page-i-pasted-the-velo-code-and-it-seems-right-but-the-same-video-appears-in-every-of-the-42-items-even-if-the-url-is-in-the-specfic-video-url-field/78755/1 "2026-06-27T00:46:07Z")

</div>

**video player should be on certain items not everywhere and the velo code to hide the non url ones does not work**  
Briefly explain what’s not working or where you’re stuck

**Working in**  
e.g. Wix Studio Editor, Wix Editor, Dev Mode, CMS, etc.

**Site link**  
www.jacquelinevandegeer.ca

trying to be able to add a video to some of the items of a dynamic page without that video being mirrored i every item

**What I’ve tried so far**  
i tired to paste the code for hiding the videos absent in the url field of the dynamic page

**Extra context this is what I pasted following the suggestion in the “Hiding a video player when there is no video player” velo tutorial**  
$w.onReady(() =\> {  
$w(“#myDataset”).onReady(() =\> {  
_// Gets the current item properties and stores them in a variable called item_  
const item = $w(“#myDataset”).getCurrentItem();  
_// Checks if the current item has a value in the “video” field_  
if (!item.video) {  
_// Collapses the video player if there is no value for “video”_  
$w(“#videoPlayer”).collapse();  
}  
});  
});

---

<div class="post-metadata">

**Author:** ![Dan\_Suhr](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/dan_suhr/32/94074_2.png) [@Dan\_Suhr](https://forum.wixstudio.com/u/Dan_Suhr)\
**Post date:** [June 28, 2026, 10:45pm UTC](https://forum.wixstudio.com/t/trying-to-prevent-video-players-to-repeat-in-all-the-items-of-a-dynamic-page-i-pasted-the-velo-code-and-it-seems-right-but-the-same-video-appears-in-every-of-the-42-items-even-if-the-url-is-in-the-specfic-video-url-field/78755/2 "2026-06-28T22:45:16Z")

</div>

are your element ID’s correct and the dataset is called myDataset ? also check your field ID in the CMS is correct.
