Code Works in Preview but not in Published?

I’ll try this. I had to get on a call. Thanks!