This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Clayton Farr
Posted Sep 30 - Read on Facebook

Hi all – I'm trying to be smart and save redundant code by creating a series of pages from names within an array, but apparently I'm messing up the 'smart' part.

The pages are being created successfully, I think, but when I try to call one of the pages as the start page (via snapToPage) the name isn't recognized and causes an error. The same name seems to show up correctly when I print it via the

Much appreciation for any help on what I'm missing here. Thanks!


Clayton Farr

Thanks Stefan, that helps a lot. I was able to get it working by adding an equivalent of your pageLayers key array.

Out of curiosity is there be any way of setting things up so you çan refer to a layer's .name in .snapToPage() rather than using id from an array?

Read the entire post on Facebook