Configure pre-filling forms

You can configure a form so that when it's opened, specified values are automatically inserted into fields or certain responses are pre-selected.

You can use pre-filling forms:

  • To suggest responses that you think are preferable or most likely.
  • To pass auxiliary or technical parameters to hidden fields in the form, like if you want to gather statistics.

To set a field value or select a response option, send the question ID and the response value to the form using GET parameters in the form URL.

Configure pre-filling a hidden field

You can use hidden fields to automatically send technical or auxiliary parameters to the form. This way, you can add more information to user responses for analytics and statistics. For instance, you can determine the source where the user got a link to your form.

Let's say you created a form for taking orders in an online store. To attract customers, you asked a well-known blogger to write a marketing post with a link to the order form.

To find out how many customers made an order using the link from that post, add an “Order source” hidden field to your form. Add a GET parameter to the link that will be posted, and the parameter value will automatically be sent to the hidden field. Then you can see how many responses have this order source.

To configure a hidden parameter for this example:

  1. Add a prompt of the “Integer” type named “Order source”.
  2. Turn on Hidden question for this prompt.
  3. In the Question ID field, specify source as the GET parameter name.
  4. Get a link to the form and append the GET parameter ?source=1 to the end of the URL.
  5. Put a link to the form with the GET parameter in the marketing post.
  6. When a user clicks the link in the post, the “Order source” hidden field automatically gets the1 value. By this value in the response, you can tell which orders you got as a result of the post.