and is taken back to the previous page, but I don’t want it to show the image they previously answered. As they aren’t logged in I thought I would use their SessionID but I don’t seem to be calling it correctly. I wanted to show images that they haven’t answered.
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.
Thank you for your reply JD, it’s very much appreciated. I’ve put the code
import {session} from ‘wix-storage’ ;
// …
session.setItem( “key” , “value” );
into the page where you guess, and the code
import {session} from ‘wix-storage’ ;
// …
let value = session.getItem( “key” ); // “value”
also you said I have to write an if () condition. Have you got an example? Those reference websites don’t tell a beginner anything, Or maybe it does but I’m well below a beginner.