# Works in Preview Mode but not on Live site

**URL:** <https://forum.wixstudio.com/t/works-in-preview-mode-but-not-on-live-site/26138>\
**Category:** Ask the community\
**Tags:** question, code\
**Created:** [March 9, 2018, 11:04pm UTC](https://forum.wixstudio.com/t/works-in-preview-mode-but-not-on-live-site/26138 "2018-03-09T23:04:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![greg-deangel](https://avatars.discourse-cdn.com/v4/letter/g/f04885/32.png) [@greg-deangel](https://forum.wixstudio.com/u/greg-deangel)\
**Post date:** [March 9, 2018, 11:04pm UTC](https://forum.wixstudio.com/t/works-in-preview-mode-but-not-on-live-site/26138/1 "2018-03-09T23:04:30Z")

</div>

I’m working with Wix Code for the first time. I created a collection and have data in both the sandbox and Live versions. I created a simple testimonial section for my site. I added a content box to my page. In the content box I added two text boxes and two images of arrows. I added a dataset to my page and configured it to pull from the collection I created. I connected both text boxes to pull their data from that data set. And I set the functions on both arrows, one is set to previous item, and the other is set to next item. Ideally you would use the arrows to cycle between testimonials. Ideally I’d like to add in a function which cycles through them automatically. But I still need to figure out how to do that. However, that is not the problem at hand. When I use the preview mode, everything works like I expect it to. However after I publish the site and view the page, no content from the collection is being display. I only see my placeholder text from when I was initially placing the text boxes.

---

<div class="post-metadata">

**Author:** ![\_tal](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/_tal/32/669_2.png) [@\_tal](https://forum.wixstudio.com/u/_tal)\
**Post date:** [March 11, 2018, 8:40am UTC](https://forum.wixstudio.com/t/works-in-preview-mode-but-not-on-live-site/26138/2 "2018-03-11T08:40:18Z")

</div>

Hi,  
You need to make sure that the [data is synced](https://support.wix.com/en/article/how-to-sync-data-between-sandbox-and-live-collections) to live site and that the [collection permissions](https://support.wix.com/en/article/about-collection-permissions) are set correctly.

Good luck,  
Tal.

---

<div class="post-metadata">

**Author:** ![greg-deangel](https://avatars.discourse-cdn.com/v4/letter/g/f04885/32.png) [@greg-deangel](https://forum.wixstudio.com/u/greg-deangel)\
**Post date:** [March 13, 2018, 12:54pm UTC](https://forum.wixstudio.com/t/works-in-preview-mode-but-not-on-live-site/26138/3 "2018-03-13T12:54:41Z")

</div>

Thank you Tal. It was in fact a permissions issue. The collection defaulted to Read for Admin only, which explains why it worked in preview and not on the live site.

If anyone else comes across this with a similar issue, there is a permissions tab on the sandbox collection page. And if like me, you struggled to figure out how to get back to that, it is listed in the site structure panel.

---

<div class="post-metadata">

**Author:** ![dvirshe](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/dvirshe/32/12718_2.png) [@dvirshe](https://forum.wixstudio.com/u/dvirshe)\
**Post date:** [June 15, 2019, 11:12pm UTC](https://forum.wixstudio.com/t/works-in-preview-mode-but-not-on-live-site/26138/4 "2019-06-15T23:12:16Z")

</div>

Thanks.  
I had the same problem - The permission was my solution also.

---

<div class="post-metadata">

**Author:** ![christinesoccioart](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/christinesoccioart/32/21404_2.png) [@christinesoccioart](https://forum.wixstudio.com/u/christinesoccioart)\
**Post date:** [June 29, 2020, 3:22am UTC](https://forum.wixstudio.com/t/works-in-preview-mode-but-not-on-live-site/26138/5 "2020-06-29T03:22:57Z")

</div>

YESSSS thank you thank you thank you. That worked.

---

<div class="post-metadata">

**Author:** ![doralynngreene](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/doralynngreene/32/23990_2.png) [@doralynngreene](https://forum.wixstudio.com/u/doralynngreene)\
**Post date:** [October 9, 2020, 3:42pm UTC](https://forum.wixstudio.com/t/works-in-preview-mode-but-not-on-live-site/26138/6 "2020-10-09T15:42:45Z")

</div>

Site “structure” is from the editor click on the content manager, go to the collection where your data resides, hover over the table that holds your data and select the more actions ellipses you will find the permissions there
