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

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.

 

If the header says Question logic instead of Form logic, you have selected an element in the builder on the left side and are adding logic to that element only. Click on the currently selected element to switch to the Form logic editor.

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.


Related content

How do I add additional website data to a feedback result?
How do I add additional website data to a feedback result?
More like this
How does form logic (question routing) work?
How does form logic (question routing) work?
More like this
What is the difference between form logic and question logic?
What is the difference between form logic and question logic?
More like this
How do I add logic to the 'Thank you' page?
How do I add logic to the 'Thank you' page?
Read with this
Show based on the users cookies
Show based on the users cookies
More like this
A/B testing Mopinion surveys
A/B testing Mopinion surveys
Read with this