Hi folks,
I have a question. I have a collection page with a button to book a tour. This button leads to a booking form on another page. How could I pass the tour name to the booking form to pre-fill a text field within it? I’m guessing I might have to use jQuery to pre-fill the form but I don’t know how to pass it the tour name.
Something like this:
<script>
$( document ).ready(function() {
// after the page elements are all loaded, then run the script
// Set the input field with unique ID #email to a value
$("#tour-name").val('$tour-name');
});
</script>
Does anyone know how I could do this within Webflow? Thanks for your help!