Setting Up Logic
Logic controls the flow of a survey based on the respondent's answers. Instead of always running in the same order, the survey can branch down different paths depending on how respondents reply.
The Concept of Logic
- Logic determines "where the next question leads based on the response."
- The default path is the flow every respondent goes through. (This is a different concept from 'Required'.)
Adding Logic
Open the Logic Settings
In the project editor, click the Logic button to open the logic settings screen.
Understand Condition and Go to
Logic is made up of two parts: a 'Condition' and a 'Go to' action.
Condition
- Select the reference field – Choose which field's response the logic should be based on.
- For a grid, ranking, table, or custom field question, also choose the part to compare in
Sub-item. For details, see Creating Conditions on Sub-items. - You can also use a hidden field value from the link as the reference. For details, see Creating Conditions with Hidden Fields.
- For a grid, ranking, table, or custom field question, also choose the part to compare in
- Select a condition – Pick the type of condition. Conditions fall into text/value, choice, number, and date comparisons — see Condition Types in Detail below for the full list.
- Select the option/response – Choose which response triggers the condition.
- You can select multiple responses at the same time.
Adding Multiple Conditions
- Click
+ Add new conditionto combine multiple conditions. - When combining conditions, choose one of the following:
- AND: The logic runs only when both the previous and following conditions are satisfied.
- OR: The logic runs when either the previous or the following condition is satisfied.
Go to
- Once all conditions are set, choose which field the respondent should move to.
- When configured, any respondent who meets the condition jumps straight to the specified question.
Condition Types in Detail
Text / value comparison
| Condition | Meaning | Example | Sample answer |
|---|---|---|---|
| Equals | The value matches exactly | If the answer is Seoul | Seoul |
| Does not equal | The value does not match | If the answer is not Seoul | Incheon |
| Starts with | Begins with a given value | If the answer starts with 010 | 010-1234-5678 |
| Ends with | Ends with a given value | If the answer ends with .com | example@walla.com |
| Contains text | Includes given characters | If the answer contains Inc. | Paprika Data Lab Inc. |
| Does not contain text | Does not include given characters | If the answer does not contain apple | Grape juice |
Choice comparison
Use this on questions where several items can be picked, such as multiple choice and checkbox questions, to test which options were selected.
| Condition | Meaning | Example |
|---|---|---|
| Contains all | All of the specified items were selected | If both A and B were selected |
| Contains at least one | At least one of the specified items was selected | If either A or B was selected |
| Missing all | None of the specified items were selected | If neither A nor B was selected |
| Missing at least one | At least one of the specified items was not selected | If at least one of A or B is missing |
Number comparison
| Condition | Meaning | Example |
|---|---|---|
| Greater than | Larger than the reference value | If age is greater than 19 |
| Greater than or equal to | Larger than or equal to the reference value | If age is 19 or greater |
| Less than | Smaller than the reference value | If the score is less than 60 |
| Less than or equal to | Smaller than or equal to the reference value | If the score is 60 or less |
Date comparison
| Condition | Meaning | Example |
|---|---|---|
| Before | Earlier than the reference date (excluding that date) | If it's before 2026-01-01 |
| Before or equal | On or earlier than the reference date (including that date) | If it's on or before 2026-01-01 |
| After | Later than the reference date (excluding that date) | If it's after 2026-01-01 |
| After or equal | On or later than the reference date (including that date) | If it's on or after 2026-01-01 |
Creating Conditions on Sub-items
Some questions, such as a Multiple Choice Grid or a Table, have several parts in one answer. For these questions, choose the reference field, then choose the part to compare.
Choose the reference field
Choose the reference field. If the question has sub-items, a Sub-item menu appears right below it.
Choose the sub-item
In Sub-item, choose the row, column, or property to compare. If another menu appears, keep choosing until you reach the last one.
Set the condition and comparison value
Choose the condition type and enter the comparison value. The value input changes to match the last part that you chose. For example, if you chose a cell in a Table, type text. If you chose a row in a Multiple Choice Grid, choose one of the options in that row.
Selection order for each question
| Question | Selection order | Comparison value |
|---|---|---|
| Multiple Choice Grid | Row | One option chosen in that row |
| Checkbox Grid | Row | Options chosen in that row (one or more) |
| Ranking | Rank | The option placed at that rank |
| Table | Row → Column | The text entered in that cell |
| Custom Field | Property → item position, if necessary | A value that matches the type of that property |
- For Multiple Choice Grid, Checkbox Grid, and Ranking questions, you can set the comparison value as soon as you choose the row (for Ranking, the rank).
- If respondents can type their own options in a Ranking question, choose
Select OptionsorCustomfor the comparison value. To compare with a value that is not in the list, chooseCustom, type the value, and press Enter. - If a sub-item shows
This answer cannot be used in a condition, you cannot use that part in a condition. Choose a different sub-item.
Sub-items of a custom field
- If the properties are fixed, choose one from the
Sub-itemlist. - If a property shows the
Choose propertyandEnter keybuttons, you can type the key yourself. For a key that is not in the list, clickEnter keyand type it. - If the answer is a list, an
Item positionbox appears. Enter 1 for the first item and 2 for the second item. For a custom field whose whole answer is a list, you must fill in the firstItem positionbox. - Leave an
Item position (optional)box empty to compare the whole list, or enter a number to compare only that item.
Entering comparison values
Choose or type the comparison value in the menu or input box that matches the last part you chose.
- Values with options – Choose an option from the list. Depending on the part, you can choose more than one option.
- List values that you type – Type one value and press Enter to add it as a small chip. Add each next value the same way.
- Numbers – The box starts empty, so type the number to compare. To compare with 0, type
0. - True/false – Choose
TrueorFalseas the value to compare. In a list box, typetrueorfalseand press Enter.
Conditions that are not complete
If Check the condition and finish entering its values. appears below a condition, you have not finished entering it. Check these points to finish it:
- If text stays in an input box, press Enter to add it as a chip.
- If a value does not match the expected type, the text stays in the box and
Enter a value of the expected type.appears. Correct the value and press Enter again. - If a message says that
Item positionis empty or out of range, correct the number as the message describes.
You cannot publish the form in this state. If you try to publish, Complete or correct the condition input before publishing. appears.
Conditions that break after you edit a question
If you delete or change a row, column, or option in a question, a condition can show Item not found or This value is no longer an option. Choose another one. In this case, choose a different sub-item or value.
If a saved condition stays in this state, you cannot publish the form. If you try to publish, A response-value condition is no longer valid. Check its question, sub-item, and comparison value. appears.
Creating Conditions with Hidden Fields
You can send respondents to different questions based on a hidden field value that you add to the link. For example, you can send only respondents who come from an ad link to questions about the ad. First, register the hidden field in Tracking on the Share page. For the steps, see Tracking (Hidden Fields).
Choose the hidden field
In the reference field list, choose the name of the hidden field.
Set the condition and value
Choose one of the text / value comparison conditions and type the value to compare as text.
Choose the destination question
Choose the next question to show when the hidden field value meets the condition.
- Example: if you create a condition with hidden field
utm_source,Equal, andads, only respondents who openhttps://walla.my/v/QA9S0i0UfZn5rZTfSbd4?utm_source=adsgo to the selected question. - If the link has no value for a hidden field, that hidden field meets no comparison condition, including
Not equal. - You cannot delete a hidden field that a logic condition uses. For the steps to delete it, see Deleting a Hidden Field Used in Logic.
Setting Up Logic with Nodes
Look at the nodes and connectors
On the logic screen, each question appears as a node and the connectors between nodes show the flow. Default path is the flow every respondent takes, while numbered branches such as Logic #1 and Logic #2 are the paths that split off based on conditions.
Set the default path
Click the Default path label on a node to open a dropdown for choosing the Next field. Search for a field or pick one from the list to set where respondents who match no condition go next.
Edit conditions on a logic node
Clicking a numbered branch label such as Logic #1 or Logic #2 expands the condition area right there. You can edit the reference field, the condition, and the options directly on the node, or add a New condition.
Click a connector to edit it directly
After selecting a field, you can click the connector between nodes directly to edit that flow — no need to click the Logic or Default path label on the node.
Drag nodes to connect them
Drag the connection point at the bottom of a node onto another question node to link the two directly and create a flow. Drawing a new connector sends respondents down that path.
Logic Examples
-
Example 1. Branching based on privacy consent
- Condition:
Privacy consent field= "I agree" - Go to: The question that follows the personal information fields (e.g., phone number field)
- Condition:
-
Example 2. Rejecting respondents by age
- Condition:
Age question (multiple choice / dropdown field), does not equal, "Teens" - Go to:
Rejection field
- Condition:
-
Example 3. Routing to a specific question when a keyword is included
- Condition:
Short text / long text field, contains text, "apple" - Go to:
Apple juice payment field
- Condition:
Additional Settings and Notes
-
If logic breaks midway, it's most likely because a rejection field sits in the middle of the flow, or an earlier question's logic is misconfigured.
-
Questions inside a field group can each have their own logic. If logic points to a specific question, the view starts from the group that contains it.
-
Clicking the
Resetbutton removes all logic from the current question.
Field Template
Save frequently used field combinations as field templates. Reduce repetitive work when creating surveys and share a consistent field format with your team. With field templates, every team member can quickly create surveys in the same format.
Creating Custom Fields
Use the Walla MCP to build your own field types.