Auto-fill a Wix Studio form field (Wix Forms V2) with the selected hotel name from a dynamic hotel page

I’m having trouble with
Hi everyone,

I’m working in Wix Studio with Wix Forms (new version) and I’m trying to implement a simple booking flow.

Setup:

  • Dynamic hotel page (each hotel has a Title)
  • “Reserve now” button leads to a separate booking form page
  • Form includes a field: “Hotel / Property you want to book”

Goal:
When user clicks “Reserve now”, I want the hotel name to be automatically passed and pre-filled in the form field, and included in the form submission.

What I tried:

  • URL query parameters (wix-location)
  • session storage (wix-storage-frontend)
  • Velo attempts to set field value

Issue:
It seems Wix Forms V2 does not allow programmatically setting field values.

Question:
Is there any supported way to prefill a Wix Form field dynamically?

Or is the only solution to:

  • display the value separately and let user confirm manually
  • or switch to a fully custom form?

Thanks in advance!

Follow this solution by @noahlovell that explains it step by step:

Hi Pratham,

Thank you so much for jumping in so quickly and sharing this solution — it worked perfectly on our side.

We implemented the hidden field + dataset approach exactly as described, and now the hotel/property is correctly passed and stored with each form submission. This solved our issue completely after quite a bit of trial and error.

Really appreciate the clear steps and practical example — saved us a lot of time.

Thanks again for the support :raising_hands: