Lookup Logic
What is Lookup Logic?
Lookup Logic allows you to dynamically filter options within a Multiple Choice (MCQ) question based on a participant’s earlier response or metadata. Unlike display/hide logic that controls whether a whole question is shown, lookup logic controls which options appear inside a question.
Purpose
Use Lookup Logic when:
- You want to limit visible options based on user context or metadata
- You need to filter a long list (e.g., districts, product SKUs, services)
- You want to personalize the survey content at an option level, not question level
Real-World Examples
-
Location-based Filtering
→ If the participant selects “Maharashtra” as their state, only show Maharashtra districts in the next question -
Category-specific Products
→ If the participant recently purchased from the Kids section, show only relevant products in the recommendation MCQ -
Service Personalization
→ Based on selected interest areas, display only those services aligned to them in the next step
How It Works in Zykrr
Lookup logic uses conditions to match previous answers or metadata fields with a set of mapped options. When the condition is met, only the relevant subset of options is shown.
Lookup Logic ≠ Display Logic
Feature | Lookup Logic | Display/Hide Logic |
---|---|---|
Scope | Option-level within a question | Whole question visibility |
Use Case | Show a few filtered options dynamically | Show or hide full questions |
Interaction | Users see personalized options | Users see or don’t see a question |
Configuration Steps
-
Create the source question
- Example: “Which state do you reside in?” with options like Maharashtra, Gujarat, Tamil Nadu
-
Create the dependent MCQ question
- Example: “Select your district”
-
Enable Lookup Logic under the second question’s settings
- Link it to the source question (e.g., State selection)
-
Map Options to Responses
- For each state, list the corresponding district options to be shown
If State = Maharashtra → show Mumbai, Pune, Nagpur
If State = Gujarat → show Ahmedabad, Surat, Vadodara -
Test Your Logic Paths
- Use preview mode to ensure the right subset appears for each condition
Notes & Recommendations
- Lookup logic works for single- and multi-select MCQ questions
- You can reuse the same source question to drive multiple lookups across different screens
- Keep mapping updated if your source list changes frequently (e.g., dynamic data lists)
- Works seamlessly across web and mobile views
Best Practices
- Don’t overload the dependent question with too many options—filter aggressively
- Use logical groupings (e.g., by category, region, interest)
- Label options clearly so they’re understandable even in a filtered subset
- Combine with Display Logic to show the entire question only when relevant
This is part of the Question Types Guide and Logic Features in Zykrr’s Documentation Hub.
Need help mapping lookup tables or importing logic from metadata files? Contact support@zykrr.com.