How do I add form logic based on cookies or URL parameters?

Here is an overview of how to add global logic to your form to prefill text fields, or hide or show questions based on website data. This function also allows for the email address to, rather than be stored in the website data, be stored in the email field of the form.

To add Global form rules follow these steps:

Step 1: Feedback forms

On the left-hand side click on ‘Data collection’, then ‘Feedback forms’. Click on the pencil to edit a form.

Step 2: Add elements

Add the elements you want the logic to apply to and save the form.

Step 3: Logic

Go to ‘BUILD' on the top bar, then, ‘LOGIC’ on the right-hand side.

Step 4: Create logic

Set the logic. In this case, we fill the e-mail field with the URL parameter e-mail.

Then save the form and the logic is added.

Testing

If you want to check if it works, click on the preview button at the top right corner.

You will also be able to use this function when you hide the element you are prefilling. This allows you to collect the email address in the correct field instead of the website data field.