# Conditional logic settings

Conditional Logic allows you to dynamically adjust survey questions based on customer responses. Instead of having everyone answer the same set of questions, your survey can adapt to customer needs, providing an optimized and personalized experience for your target audience.

The following section will explain how to set up Conditional Logic.

#### 01. Create a new multi-question survey project

Create a new project and select Multi-question Survey(or 5-second test).

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcyU1zYErknJPkGp8PX9y0alNOTi5Z2XXHAun8hptjoUl73LcRFaLmYTn2bhzqFsyGJ_iqS3svRaQD8XgHCvguu-s4S_5SEHOq6zqPfCiNyrNq26DlZ55A6EG3zOZ987s1qpIpsoQ?key=13gVNzDoDGtSQoJW35nNHg" alt=""><figcaption></figcaption></figure>

#### 02. Select a template or create one from scratch

You can choose a template or start from scratch. This time, let’s use Marketing Attribution as an example.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfzG0TdilKPuzAzP4ax0iTB4CMdieQEGEXU9nrQqujMZ_v6ykYM4JQn6QQOUWDfQ74JXf3h5-grU6_RD-otk3fn_W3EfA6SEhXw1wyuYPZUU_7BV63hQBt95ytG2bqxb1ovkYfL?key=13gVNzDoDGtSQoJW35nNHg" alt=""><figcaption></figcaption></figure>

#### 03. Set up the content of questions&#x20;

Based on the first question, set up the follow-up questions.

For example, if the questions are:

> How did you hear about us?
>
> * Instagram
> * Facebook
> * Google
> * TikTok
> * Word of mouth
> * Online community
> * Other

> Do you have any other comments or feedback to share?
>
> * Open-ended answer

You can create follow-up questions for each answer.&#x20;

For instance, if the customer selects Google, you can ask:

**"What keywords did you search for?"**

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXf9X6afGzc_z0ubXjbEAP82ZEyQql0hXH0iiaLGdbS4vNbeJ4UvlU9CPlrXGK0ki6PH0Q6p3EBMcWyyCVATXQJsbbBVWsyDDUe6JvhA_JEOFMo8glvbp2d8Y9e6xgr5_u2NA8K9?key=13gVNzDoDGtSQoJW35nNHg" alt=""><figcaption></figcaption></figure>

Or, if the customer selects Online Community, you can follow up with:

**"Which community was it?"**

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdZWLaa5zin7jbiXv8gBGQQFWDOuB0V8byegJGX40ELBT0O8L7b3sUDXEQIo_bRsOxizCQSUWoDQR6iOM1w5vf8hSo7f-9KEwBRlmWH3yq30JnKINkpecDSmZkcuqCQIpA7Tckw?key=13gVNzDoDGtSQoJW35nNHg" alt=""><figcaption></figcaption></figure>

#### 04. Set up the conditional logic&#x20;

Click on logic settings at the bottom left of each question card.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfZw-1HhL_KfKvtLlp79MvRtDJKJngzrsA2eoX140UPWWZUBQfbTOmWULW_7IoRnIF_PJJYPCcCWZZvaXL9qWNvEu37unxPWc8I1eDhD3woeWZqE4WPtGNlsOUPVVQTPNRl2AszBA?key=13gVNzDoDGtSQoJW35nNHg" alt=""><figcaption></figcaption></figure>

Open the logic settings modal. In the default state, any answer will lead to the next question. The available "Go to" options include:

* Any question that comes after the current one
* A specific URL (redirecting the user).
* Ending the survey.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfRSrq-XgpJvwER-OCRXy9sft5dPkLc5VEqKacZqDVneUkHNTWlk4Ma7XKCMXbH3XGotDYOX7W06YGGnfRJuPztfXhrf2H1FKgiu08YgoqnffkMTLBcIlZa1WPD_bvkxGMPW0gO?key=13gVNzDoDGtSQoJW35nNHg" alt=""><figcaption></figcaption></figure>

You can add new rules to customize the flow by clicking the Add rule button.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfiydkg6e0h6VGozj_4vfToJxp7Wex1B1CGRFpuQTGKNhKbuwY2xIBY80wk2uZrfqjn1R0t26h_TQYg6v3mAAE78N4dnauYSJ06DrjAwOZ7IdST_90ExxorDoZuwnNCc5bZun1sHw?key=13gVNzDoDGtSQoJW35nNHg" alt=""><figcaption></figcaption></figure>

In the rules, you can specify which answer leads to which question.

* Click on "When answer is" and select the answer you want to configure.
* Click on "Then go to" and choose the question you want it to lead to.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfY96SfPUPMV41vPVusasp-0aUg39rhyfyEWz_kc_h86Ctx2a8BM3_MX2abk6opyi-0PjtcNgZfZon9KpqO_RgqZ0ceWpzIM39uTRiS2fNH8e6IUu_5RhzU9txDniihoGMEkbAA-A?key=13gVNzDoDGtSQoJW35nNHg" alt=""><figcaption></figcaption></figure>

You can also add conditions, allowing multiple options within a question to lead to a specific follow-up question.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXds4-D0ni-nMa37mwr2GPUQ50gUIQP13ehcashbm4GvJ_1CtaPUskt073oHpP5211Eo0_28yuJKUZnV9nMHIMiUYo8jbmxBMRsb-BvobP_KlsJRuIVn713oDNbDxKdkfRbhNNZV?key=13gVNzDoDGtSQoJW35nNHg" alt=""><figcaption></figcaption></figure>

Remember to set up the remaining options as well!

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeUhIubhfiHptmbXvmExbwDB94AcZnea-cR8Ug_C5LNu2tgKJNCtgKkcdYF4iRzpyF_FJ8nJNp2HZCXoXUMQzbwsnMPOdXN4YauZOAOL68L6yf4xQZp6-JB3oqTOZxwmhnkCW59?key=13gVNzDoDGtSQoJW35nNHg" alt=""><figcaption></figcaption></figure>

If the settings are correct, click Apply Logic.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfpHE6NACNr01e0uVox81VkMtk2QVBZs7DMX2dz22IMt6hPF4MPo9fXMMYVHSQBXehasp20kcwK2Np_o5u_phOvFFa2ZwiqC1efdUL9t05ADIojnb8qW3_4bwfAubw_pa4J-REFwA?key=13gVNzDoDGtSQoJW35nNHg" alt=""><figcaption></figcaption></figure>

Remember to also set up the logic for other questions. After a follow-up question, decide whether the survey should end or lead to another question.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXedYPEGfw6-8I8L79WbxTMX3OA4cfrmK-pwz1-TxN2kyYoKp6flVmO3e1cuEbtHngtXxFZUIh-ntfNGC3jtgNsfzgeXqm-CmJf4EpJzPqlVe_T9pDG8Z43b-A4g0xMy5oTk4_Emng?key=13gVNzDoDGtSQoJW35nNHg" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Tip: After setting up question logic, avoid changing the order, as it may disrupt the logic settings.
{% endhint %}

#### 05. Try the flow of each option on the preview page

Before publishing the survey, review it to ensure that each option leads to the correct question. If you want to check it in a real environment, please refer to "[How to test my survey](https://docs.gojiberry.app/documentation/surveys/how-to-test-my-survey)."
