Code Works in Preview Not in Live Site

Thank you. That makes sense. It solved the problem on the laptop live site. I am still getting an unpopulated element (presents as Date(s) on the web page but should read something like this Mar 14 - March 18, 2022 ) when I access the page from my phone. Are there additional measures I need to take to make sure data is loaded before running the code? Thank you very much for any help.

I am lacking an understanding of website relationships to a mobile device vs. laptop. I don’t understand why when I access the website from a mobile phone the code doesn’t populate the element. Can anyone provide insight?

Another issue not (previously mentioned) that illustrates the disconnect between mobile device access vs. laptop is when I make an update to the site from an input page while using my mobile phone.

Here is how I have it set up. All elements on the Golf Tournament page are populated from the Programs collection/dataset. The collection is populated by input fields on another page (called EDIT Programs). This allows users without Admin-like permissions to change data on the Golf Tournament page. It also allows us to use our phones to do quick changes to the Golf Tournament page when we don’t have a laptop on hand. However, on this page (with this code I am using) when I use my phone to input or change data (via the EDIT Programs) the collection receives the data but the Golf Tournament page appears to loose its connection with collection. All elements on the Golf Tournament page regress to their original names (when they are not connected to a collection).

Here is what the Golf Tournament page looks like when I use my phone to make a change, push the UPDATE button and then check my laptop to see if the changes were made. As you can see the element at the top now reads Title of Event (the text i typed in the element before it was connected to the dataset. It should read as Alumni Golf Tournament as shown above. This problem only happens when the EDIT Programs page is used on a mobile phone. Weird. Does anyone understand this? Thank you!