Hi everyone!
It sounds maybe very simple, but I need your help for this :-).
Can someone help?
Thank you!
Hi everyone!
It sounds maybe very simple, but I need your help for this :-).
Can someone help?
Thank you!
hi Kevin,
can you please elaborate more on what you are trying to achieve ?
thx.
Hey Alon,
Sorry for my late reply I was not notified. Well when introducing date checkin/checkout and clicking the button “check availability” you go on another page. I would like that the chosen inputs are already selected when arriving on the landing page. So that visitor can continue the form…
Thank you!
Hi Palombo,
You can use a url query to pass parameters between pages.
In your wixLocation.to() function use the following syntax:
import wixLocation from 'wix-location';
//...
wixLocation.to("/formpage?queryParam=value&anotherParam=anotherValue");
In your form page, use
import wixLocation from 'wix-location';
// ...
let query = wixLocation.query; // {"queryParam": "value", "anotherParam":"anotherValue"}
//use query to get the search parameters and set them below
Great Thank you very much