You have to set the “key” on page1 and get it on the the second page.
then you should use if(){} condition to decide what to show based on the retrieve key.
See:
https://www.wix.com/velo/reference/wix-storage/storage/setitem
https://www.wix.com/velo/reference/wix-storage/storage/getitem
- for general learning: