How conditional logic works
Every conditional rule is a Survey event in the Events section of the Widget Studio. The Survey event type handles survey values and form values alike, so a Dropdown from the Form section and a Short answer from the Survey section both work as conditions. Each event has two parts:- Condition: The answer that triggers the event, such as a specific dropdown option.
- Action: What Kameleoon does when the condition is met, such as showing a hidden element.
Show a second dropdown after a visitor’s choice
Use conditional logic when a follow-up question applies to only some answers. Suppose your newsletter form asks visitors to choose Latest products or Blog updates. Only visitors who choose Latest products need to pick a product category, so the second dropdown appears only in that case.

- Hover over the second dropdown in the Elements list, click its three-dots menu, and click Hide. The dropdown stays hidden until the event runs.
- Click Events in the left sidebar, then click Add event.
- Select Survey, and click Next.
- Under If the value for, select the first dropdown.
- Under is, select Latest products.

- Under Actions, select Show an element, and choose the second dropdown.
- Click Save event.

Show a screen based on an NPS score
Use conditional logic on a survey to change what visitors see after they answer. Suppose you’ve built a multi-step NPS survey and want to customize the experience based on the visitor’s score. If a visitor gives a score from 0 to 6 (a Detractor), you might want to display a follow-up question asking for more feedback. If the score is 7 to 10 (a Passive or Promoter), you can skip straight to a thank-you message. In the following example, the survey consists of two screens:- Screen 1: The NPS score question (0-10). For Detractors (scores 0 to 6), a follow-up open text field asks for the main reason behind the score.
- Screen 2: A confirmation screen (“Thank you for your feedback!”).
Set up the survey screens
In the Widget Studio, create both screens:- Screen 1 with the NPS element
- Screen 2 with a confirmation message


Ask a follow-up question to Detractors
- Select the NPS element.
- In the Settings tab, under Follow-up question, select Detractors.

Add a conditional logic event for Passives and Promoters
- Click Events in the left sidebar, then click Add event.
- In the Create new event panel, select Survey as the event type.

- Under If the value for, select NPS.
- Under matches, select Passives and Promoters.

- Then, define the action. Click Add action > Show a screen.
- Select Thank you, the screen that shows the confirmation message.

- Define a second action: Hide an element, and select Screen 1.
Check the final logic
The configured logic works as follows:- The widget always shows Screen 1 first.
- If the score is between 0 and 6, the widget shows the follow-up question.
- If the score is between 7 and 10, the event hides Screen 1 and shows Screen 2.