Streaming live at 10am (PST)

Pre-Populating A Form w/ URL Parameters

Hello - I’m looking for some pointers on how to pass URL params into webflow in order to pre-populate a form. It doesn’t appear there is a productized feature to handle this. I gather this will require some custom JS and Div Tags.

Here is an example URL from our site:

I would like to accomplish this:“param2”&var="param3 etc

And then use the URL params to pre-populate displayed and hidden form fields in a WebFlow data collection.

Thanks everyone for any tips or tricks before I go and try to hack this thing together!

Here is my public share link: LINK
(how to access public share link)

You need to paste this in the “Page Settings” > “Before body tag” textarea field of your page:

function getParam(name) {
  name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
  var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
  results = regex.exec(;
  return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
var Webflow = Webflow || [];
Webflow.push(function() {

Now this link will work:


This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.