1. Overview
  2. Nice to know
  3. Pre-fill fields via url parameter

Pre-fill fields via url parameter

In case you want to pre-fill certain fields from external sources, you can make use of our custom field identifiers. This can be useful if you're running a survey or anything and want to pre-fill a customer email address, id or name to the form.

Custom field identifiers are currently only available for Short answer (Input) and Hidden fields. The length of these fields is limited to 255 characters. If you provide a longer value, it will be truncated on our end and you won't see the full value in the responses export.

Let's take the following link as an example:
https://forms.ivymayhem.io/yJgdHh?zfytq=Ivy&lkjhw=Hamburg

Whenever you create either an input or hidden field, a unique identifier is generated and can be used to target the field. The relevant part starts at the ? symbol. In our example, zfytq is the identifier for the name field and lkjhw is the identifier for the city field.

When you open this url, both of the fields are filled with the value that comes after the = sign.

It's important to keep in mind that only the first parameter must start with a ? and any following parameters have to start with an & sign. That's just how things work, we did not make this up.

Dynamic parameters for the "Paragraph" element

You can also set dynamic parameters in the "Paragraph" element. Let's use the following url as an example: https://forms.ivymayhem.io/hLSxBO?setter=[name=Madison][order_id=12345]&lkjhw=madison@example.com

This is a combination of a pre-filled field with the id lkjhw as well as custom setters. Paragraph variables must be set in the following format: setter=, followed by [key=value]. You can add multiple setter by adding them after another like this: [name=value][email=value][order_id=value].

key is the placeholder you want to use, e.g. ###NAME###, ###EMAIL### or practically anything (no spaces though). When adding a paragraph element to your form, simply add the placeholders to the text. The paragraph for the demo url from before looks like this:

Hello ###NAME###! 👋 Let us know your feedback about your recent order ###ORDER_ID### and win a $50 discount for your next purchase in our shop.

If you need help with this, feel free to get in touch via in-product chat.

 


Was this article helpful?