Hi K,
Always share your read-only project link. If we can’t see your project, very little we can do to help.
That said, my first guess would be is that in the designer you’ve set your ID with different casing like PageName
or Pagename
. ID’s are case-sensitive, so they need to match exactly what you’re referencing in your script.