How to dynamically select option based on page user come from?

Hello everyone,

I want to dynamically select option from select field based on the page user come from.
This site is for booking basecamps, with cms I made page for each basecamp and I need when user click on “book now” to go to reservation page and basecamp to be already selected based on page user comes from.

I believe I need custom code for that

Here’s preview link: Webflow - Geardropper

Live link of basecamp page: GEARDROPPER - Glampings & rondreizen
Reservation Page: Glamping overzicht

What language is this in for starters?

Can you tell me which link is the “Book Now”?

Hello @QA_Brandon,
Thank you for trying to help.
I managed to do this with document.referrer js function.

1 Like