Code Works in Preview but not in Published?

@guille You’re Welcome