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
![](https://static.wixstatic.com/media/a27d24_ca356e3049f54c31a00544a98d39a4c3~mv2.png/v1/fill/w_980,h_551,al_c,q_90,usm_0.66_1.00_0.01,enc_auto/a27d24_ca356e3049f54c31a00544a98d39a4c3~mv2.png)
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?