Form1 datepicker 1&2 transfer to form 2

Hello everyone. I need some help with a code. I have now created two forms (both is on front page)

  • In form one i have two datepickers(departure and arrival)
  • In form two I have more options but also two datepickers (departure and arrival)

What I can’t understand is how to get the user’s input from form1 to show up in form 2 after they have submitted the first form. (form1 is in centre main page, form2 is a sidebar showing up after form1 is submitted. I just dont know how to get the data to get from form1 to form2. Is there any name I should give the date ID? original is just datepicker1&2
Thank you
/Andreas

Form 1
import {session} from ‘wix-storage’;

export function Submit_click(event, $w) {
session.setItem(‘Form1’, $w(‘#datePicker1’).value);
}

Form 2

//Lightbox code
import {session} from ‘wix-storage’;

$w.onReady( function () {
const Data = session.getItem(‘form2’);
$w(‘#datePicker1’).value;

}); 

is it correct to put const data? Or does data target something?