Populate a Field with Query String Data

It is possible to populate a field with the value of a query string parameter using the WS Form variable.

To do this:

  1. Click the field settings icon to open up the settings sidebar. We recommend using a text field or hidden field for this purpose but you can use it on any field type that has a ‘Default Value’ setting.
  2. In the ‘Default Value’ setting, add the following: #query_var("parameter") where ‘parameter’ is the query string parameter you would like to populate the field with.
  3. Click ‘Save’.

WS Form will now populate that field with the query string parameter you chose.

An example of how to set this up for a text field is shown below.

WS Form - Populating a default value with a query string parameter