How to use Display Logic¶
Display logic is a feature of the Results Page that allows you to make elements visible or hidden on the results page based on conditional logic rules.
Use Display Logic to:
- Show or hide content on the results page based on customer's responses to questions.
- Show or hide content on the results page based on the score of a variable (custom scoring quiz, personality-type quiz).
- Show or hide content on the results page based on the variable with the highest score (personality-type quiz).
In this article, we provide a clear, step-by-step guide on how to use Display Logic, its workings, and examples to illustrate its functionality.
Results Page¶
In the Results Page section, you can add content to the results page shown at the end of the quiz. You can adjust the results page settings and see the preview of how the results page looks like.
What content be added to the Results Page?
You can add different types of building blocks to your results page:
- Heading Block - Adds a new heading to your page, ideal for titles or section breaks.
- Content Block - Adds a new content block to your page, ideal for adding and formatting text, lists, and links.
- HTML Block - Adds a block where you can input custom HTML code for advanced content and styling.
- Image Block - Adds an embedded image block into your page. You can upload your own image. The image should be max 1000px x 1000px and max 2MB.
- Products Block - Adds a block specifically designed for displaying a list of recommended products.
- Slots Block - Adds a block specifically designed for displaying the recommended products sorted into slots. Slots allow you to group recommended products into different categories (e.g. cleanser, toner, serum, moisturizer...). Slots show the most voted products from a collection that's linked to the slot.
What content be added to the Results Page?
You can add different types of building blocks to your results page:
- Section - Adds a new section to your page, ideal for grouping content together.
In each section, you can add the following blocks:
- Heading Block - Adds a new heading to your page, ideal for titles or section breaks.
- Text Block - Adds a new text block to your page, ideal for adding and formatting text, lists, and links.
- HTML Block - Adds a block where you can input custom HTML code for advanced content and styling.
- Image Block - Adds an embedded image block into your page. You can upload your own image. The image should be max 1000px x 1000px and max 2MB.
- Video Block - Adds a video block into your page. You can upload your own video from the Shopify ContentLibrary.
- Button Block - Adds a button block into your page. You can add a link to the button.
- Products Block - Adds a block specifically designed for displaying a list of recommended products, product variants or product collections.
What content be added to the Results Page?
You can add different types of building blocks to your results page:
- Heading Block - Adds a new heading to your page, ideal for titles or section breaks.
- Content Block - Adds a new content block to your page, ideal for adding and formatting text, lists, and links.
- HTML Block - Adds a block where you can input custom HTML code for advanced content and styling.
- Image Block - Adds an embedded image block into your page. You can upload your own image. The image should be max 1000px x 1000px and max 2MB.
- Products Block - Adds a block specifically designed for displaying a list of recommended products.
- Slots Block - Adds a block specifically designed for displaying the recommended products sorted into slots. Slots allow you to group recommended products into different categories (e.g. cleanser, toner, serum, moisturizer...). Slots show the most voted products from a collection that's linked to the slot.
What content be added to the Results Page?
You can add different types of building blocks to your results page:
- Heading Block - Adds a new heading to your page, ideal for titles or section breaks.
- Content Block - Adds a new content block to your page, ideal for adding and formatting text, lists, and links.
- HTML Block - Adds a block where you can input custom HTML code for advanced content and styling.
- Image Block - Adds an embedded image block into your page. You can upload your own image. The image should be max 1000px x 1000px and max 2MB.
- Products Block - Adds a block specifically designed for displaying a list of recommended products.
- Slots Block - Adds a block specifically designed for displaying the recommended products sorted into slots. Slots allow you to group recommended products into different categories (e.g. cleanser, toner, serum, moisturizer...). Slots show the most voted products from a collection that's linked to the slot.
What content be added to the Results Page?
You can add different types of building blocks to your results page:
- Heading Block - Adds a new heading to your page, ideal for titles or section breaks.
- Content Block - Adds a new content block to your page, ideal for adding and formatting text, lists, and links.
- HTML Block - Adds a block where you can input custom HTML code for advanced content and styling.
- Image Block - Adds an embedded image block into your page. You can upload your own image. The image should be max 1000px x 1000px and max 2MB.
- Products Block - Adds a block specifically designed for displaying a list of recommended products.
- Slots Block - Adds a block specifically designed for displaying the recommended products sorted into slots. Slots allow you to group recommended products into different categories (e.g. cleanser, toner, serum, moisturizer...). Slots show the most voted products from a collection that's linked to the slot.
What content be added to the Results Page?
You can add different types of building blocks to your results page:
- Heading Block - Adds a new heading to your page, ideal for titles or section breaks.
- Content Block - Adds a new content block to your page, ideal for adding and formatting text, lists, and links.
- HTML Block - Adds a block where you can input custom HTML code for advanced content and styling.
- Image Block - Adds an embedded image block into your page. You can upload your own image. The image should be max 1000px x 1000px and max 2MB.
- Products Block - Adds a block specifically designed for displaying a list of recommended products.
- Slots Block - Adds a block specifically designed for displaying the recommended products sorted into slots. Slots allow you to group recommended products into different categories (e.g. cleanser, toner, serum, moisturizer...). Slots show the most voted products from a collection that's linked to the slot.
Add Display Logic to Block / Section¶
With Display Logic you can make blocks visible or hidden based on customer's responses.
- Find a block: Start by identifying or adding the block you wish to add Display Logic to.
-
Open Display Logic settings: Look for a
conditional logic / tree icon
button and click it.conditional logic / tree icon - Opens the Display Logic menu.
-
Next, select
add Display Logic
. -
Add your rules: Add you display logic rules for when the block should be visible or hidden.
Info
All the Display Logic rules follow the same format
- IF response to pick the question from a dropdown list
- is/ is not pick a choice from the dropdown list
- THEN block is pick either Visible or Hidden
- IN ALL OTHER CASES this block is pick pick either Visible or Hidden
Example
In the example, if a user chooses a choice "A gift" in Question 1 "Who are you shopping for?" then this content block with text "This is content text." will be visible. If they give a different answer in Question 1 this content block will be hidden.
-
You can add multiple rules by clicking the
+
button.- + - Adds another Display Logic rule. Adds a new OR logical rule.
- bin - Delete the current Display Logic rule.
- + add concurrent logic - Adds a new AND logical statement to the same rule. AND conditional statements can be tricky, as both statements have to be true for the rule to take effect. For most quizzes, using the OR rule is enough.
-
Preview and Adjust: Publish the changes with the top-right Publish button to update the preview/live quiz and test the setup.
With Display Logic you can make sections visible or hidden based on customer's responses.
- Find a section: Start by identifying or adding the section you wish to add Display Logic to.
-
Open Display Logic settings: Click on the section and on the right-hand side identify the
Display logic
. -
Next, select
+ Add logic condition (OR)
to set up the first Display Logic rule.
Display logic operators
+ Add condition (OR)
- Adds a new OR display logic rule.+ Add condtion (AND)
- Adds a new AND logical statement to the same rule. AND conditional statements can be tricky, as both statements have to be true for the rule to take effect. For most quizzes, using the OR rule is enough.bin
- Delete the current Logic rule.+ Add condition (OR)
- Adds another Display Logic rule. Adds a new OR logical rule.Default
- Select whether this section should beShown
orHidden
by default.
There are three types of Display Logic rules you can choose from:
Type 1: IF The response to the question...
Then the Display Logic rules follow the following format:
- IF response to pick the question from a dropdown list
- is/ is not pick a choice from the dropdown list
- THEN section is Visible
- Default visibility pick either Visible or Hidden. If Visible is selected, then section will be shown by default unless the Display Logic rule is triggered. If Hidden is selected, the section will be hidden by default unless the Display Logic rule is triggered.
Example 1
In the example, if a user chooses a choice "Oily all over" in Question 4 "SKIN TYPE" then this section will be visible. If they give a different answer in Question 4 this content block will be hidden.
Type 2: IF The score of the variable...
Then the Display Logic rules follow the following format:
- IF The score of the variable
- score pick the variable from a dropdown list
- is equal to/ is not equal to / is greater than/ is less than / is greater than or equal to / is less than or equal to pick a choice from the dropdown list
- Number / Another variable pick a choice from the dropdown list
- 0 / 1 / 2 / other numerical value type a value in the input field
- THEN section is Visible
- Default visibility pick either Visible or Hidden. If Visible is selected, then section will be shown by default unless the Display Logic rule is triggered. If Hidden is selected, the section will be hidden by default unless the Display Logic rule is triggered.
Info
Note: Scores are assigned to each choice in the Questions tab > Choice settings section.
Example 2
In the example, if the score of the variable
dry
is greater than or equal to number5
AND IF the score of the varaibledry
is less than or equal to number7
then this section will be visible. Otherwise, the section will be hidden.
Type 3: IF the variable with the highest score...
Then the Display Logic rules follow the following format:
- IF the variable with the highest score
- score pick the variable from a dropdown list
- THEN section is Visible
- Default visibility pick either Visible or Hidden. If Visible is selected, then section will be shown by default unless the Display Logic rule is triggered. If Hidden is selected, the section will be hidden by default unless the Display Logic rule is triggered.
Info
Note: Scores are assigned to each choice in the Questions tab > Choice settings section.
Example 3
In the example, if the variable with the highest score is
dry
then this section will be visible. Otherwise, the section will be hidden. -
Preview and Adjust: Publish the changes with the top-right
Save
button to update the preview/live quiz and test the setup.
With Display Logic you can make blocks visible or hidden based on customer's responses.
- Find a block: Start by identifying or adding the block you wish to add Display Logic to.
-
Open Display Logic settings: Look for a
conditional logic / tree icon
button and click it.conditional logic / tree icon - Opens the Display Logic menu.
-
Next, select
add Display Logic
. -
Add your rules: Add you display logic rules for when the block should be visible or hidden.
Info
All the Display Logic rules follow the same format
- IF response to pick the question from a dropdown list
- is/ is not pick a choice from the dropdown list
- THEN block is pick either Visible or Hidden
- IN ALL OTHER CASES this block is pick pick either Visible or Hidden
Example
In the example, if a user chooses a choice "A gift" in Question 1 "Who are you shopping for?" then this content block with text "This is content text." will be visible. If they give a different answer in Question 1 this content block will be hidden.
-
You can add multiple rules by clicking the
+
button.- + - Adds another Display Logic rule. Adds a new OR logical rule.
- bin - Delete the current Display Logic rule.
- + add concurrent logic - Adds a new AND logical statement to the same rule. AND conditional statements can be tricky, as both statements have to be true for the rule to take effect. For most quizzes, using the OR rule is enough.
-
Preview and Adjust: Publish the changes with the top-right Publish button to update the preview/live quiz and test the setup.
With Display Logic you can make blocks visible or hidden based on customer's responses.
- Find a block: Start by identifying or adding the block you wish to add Display Logic to.
-
Open Display Logic settings: Look for a
conditional logic / tree icon
button and click it.conditional logic / tree icon - Opens the Display Logic menu.
-
Next, select
add Display Logic
. -
Add your rules: Add you display logic rules for when the block should be visible or hidden.
Info
All the Display Logic rules follow the same format
- IF response to pick the question from a dropdown list
- is/ is not pick a choice from the dropdown list
- THEN block is pick either Visible or Hidden
- IN ALL OTHER CASES this block is pick pick either Visible or Hidden
Example
In the example, if a user chooses a choice "A gift" in Question 1 "Who are you shopping for?" then this content block with text "This is content text." will be visible. If they give a different answer in Question 1 this content block will be hidden.
-
You can add multiple rules by clicking the
+
button.- + - Adds another Display Logic rule. Adds a new OR logical rule.
- bin - Delete the current Display Logic rule.
- + add concurrent logic - Adds a new AND logical statement to the same rule. AND conditional statements can be tricky, as both statements have to be true for the rule to take effect. For most quizzes, using the OR rule is enough.
-
Preview and Adjust: Publish the changes with the top-right Publish button to update the preview/live quiz and test the setup.
With Display Logic you can make blocks visible or hidden based on customer's responses.
- Find a block: Start by identifying or adding the block you wish to add Display Logic to.
-
Open Display Logic settings: Look for a
conditional logic / tree icon
button and click it.conditional logic / tree icon - Opens the Display Logic menu.
-
Next, select
add Display Logic
. -
Add your rules: Add you display logic rules for when the block should be visible or hidden.
Info
All the Display Logic rules follow the same format
- IF response to pick the question from a dropdown list
- is/ is not pick a choice from the dropdown list
- THEN block is pick either Visible or Hidden
- IN ALL OTHER CASES this block is pick pick either Visible or Hidden
Example
In the example, if a user chooses a choice "A gift" in Question 1 "Who are you shopping for?" then this content block with text "This is content text." will be visible. If they give a different answer in Question 1 this content block will be hidden.
-
You can add multiple rules by clicking the
+
button.- + - Adds another Display Logic rule. Adds a new OR logical rule.
- bin - Delete the current Display Logic rule.
- + add concurrent logic - Adds a new AND logical statement to the same rule. AND conditional statements can be tricky, as both statements have to be true for the rule to take effect. For most quizzes, using the OR rule is enough.
-
Preview and Adjust: Publish the changes with the top-right Publish button to update the preview/live quiz and test the setup.
With Display Logic you can make blocks visible or hidden based on customer's responses.
- Find a block: Start by identifying or adding the block you wish to add Display Logic to.
-
Open Display Logic settings: Look for a
conditional logic / tree icon
button and click it.conditional logic / tree icon - Opens the Display Logic menu.
-
Next, select
add Display Logic
. -
Add your rules: Add you display logic rules for when the block should be visible or hidden.
Info
All the Display Logic rules follow the same format
- IF response to pick the question from a dropdown list
- is/ is not pick a choice from the dropdown list
- THEN block is pick either Visible or Hidden
- IN ALL OTHER CASES this block is pick pick either Visible or Hidden
Example
In the example, if a user chooses a choice "A gift" in Question 1 "Who are you shopping for?" then this content block with text "This is content text." will be visible. If they give a different answer in Question 1 this content block will be hidden.
-
You can add multiple rules by clicking the
+
button.- + - Adds another Display Logic rule. Adds a new OR logical rule.
- bin - Delete the current Display Logic rule.
- + add concurrent logic - Adds a new AND logical statement to the same rule. AND conditional statements can be tricky, as both statements have to be true for the rule to take effect. For most quizzes, using the OR rule is enough.
-
Preview and Adjust: Publish the changes with the top-right Publish button to update the preview/live quiz and test the setup.
Examples and Applications¶
Display Logic Based on Customer Answers¶
Scenario
You want to show a custom text block based on the customer's answer to a question. Imagine creating a quiz that determines a personalized skincare routine. Question 4 might ask about the participant's skin type, and depending on the answer, a different text and recommendation about their skincare is shown on the Results Page. This individualized response is made possible by Display Logic.
Implementation
-
Create Quiz: Open the Quiz Builder and add a
Multiple choice question
asking the customer about their skin type: Dry, Normal, Oily, or Combination-type skin.Tip
Use the description box in
Question Settings -> Show Description
to help customers determine their skin type. -
Add Content Blocks to Results Page: Go to the Results Page and add a new
content block
. To add a content block click the+
sign and selectContent Block
from the list. Add multiple content blocks describing the specific skin type and its challenges. For example:Example
- You have Dry Skin: The itchiness, tightness and dryness – we know your struggle! Your skin wants a routine that’s deeply nourishing and hydrating.
- You have Normal Skin: Your skin feels balanced, just like you! Even though your skin doesn’t experience major issues, it deserves amazing care! Your skin wants a routine that sustains your skin’s natural harmony.
- You have Oily Skin: Your skin is oh-so shiny, but with excess oil instead of your natural glow! Your skin wants a routine that reduces oil to provide balance and clarity, all while giving your skin the proper amount of light hydration.
- You have Combination-Type Skin: Your skin has multiple things going on at once: you experience your T-zone to be on the oily side, while the rest of your face is either normal or dry.
Tip
Make the heading stand out with markdown language. Use the
#
sign before a sentence can make it bold. -
Add Display Logic: If we don’t add Display Logic to the quiz, our blocks will just appear one after the other on the Results Page, regardless of the choice we made. To add Display Logic, select a content block and click on
display logic
. Next, clickadd display logic
. Set up IF-THEN statements to control when each content block should be visible or hidden based on the customer's choices. -
Publish the changes: Click the top-right
Publish
button to update the preview/live quiz.
Scenario
You want to show a section based on the customer's answer to a question. Imagine creating a quiz that determines a personalized skincare routine. Question 4 might ask about the participant's skin type, and depending on the answer, a different text and recommendation about their skincare is shown on the Results Page. This individualized response is made possible by Display Logic.
Implementation
Step 1: Add sections to the Results Page
The quiz has four sections on the Results Page for different skin types: Dry Skin, Normal Skin, Oily Skin, and Combination Skin. Without display logic, all sections would be visible at once.To show only one section based on user responses, display logic must be applied to each section.
Step 2: Configuring Display Logic for Dry Skin Section
- Find the Dry Skin Section: Locate the section on the Results Page that corresponds to Dry Skin.
- Open Display Logic Settings: Click the
conditional logic / tree icon
button to open the Display Logic menu. - Add Display Logic Rule: Select
+ Add logic condition (OR)
to create a new Display Logic rule. -
Set Up the Rule:
- If
The response to question
- Choose thequestion
that determines the skin type. - is - Select the choice that corresponds to
Dry Skin
. - THEN section is VISIBLE
- Choose
Default visibility
to beHidden
.
- If
Step 3: Repeat the process for other skin types:
- Normal Skin: Visible if the response is "not too oily and not too dry".
- Oily Skin: Visible if the response is "oily all over".
- Combination Skin: Visible if the response is "oily in certain spots".
Step 4: Preview and Adjust
Publish the changes with the top-right Save
button to update the preview/live quiz and test the setup. Test by selecting different skin types to ensure only the relevant section is displayed.
Advanced Display Logic Conditions
You can set multiple conditions for display logic:
- Example: A section can be visible if the skin type is "dry and tight" or if the age group is "teens".
- Another example: A section can be visible if both conditions are met: skin type is "dry and tight" and skin concerns include "acne".
Scenario
You want to show a custom text block based on the customer's answer to a question. Imagine creating a quiz that determines a personalized skincare routine. Question 4 might ask about the participant's skin type, and depending on the answer, a different text and recommendation about their skincare is shown on the Results Page. This individualized response is made possible by Display Logic.
Implementation
-
Create Quiz: Open the Quiz Builder and add a
Multiple choice question
asking the customer about their skin type: Dry, Normal, Oily, or Combination-type skin.Tip
Use the description box in
Question Settings -> Show Description
to help customers determine their skin type. -
Add Content Blocks to Results Page: Go to the Results Page and add a new
content block
. To add a content block click the+
sign and selectContent Block
from the list. Add multiple content blocks describing the specific skin type and its challenges. For example:Example
- You have Dry Skin: The itchiness, tightness and dryness – we know your struggle! Your skin wants a routine that’s deeply nourishing and hydrating.
- You have Normal Skin: Your skin feels balanced, just like you! Even though your skin doesn’t experience major issues, it deserves amazing care! Your skin wants a routine that sustains your skin’s natural harmony.
- You have Oily Skin: Your skin is oh-so shiny, but with excess oil instead of your natural glow! Your skin wants a routine that reduces oil to provide balance and clarity, all while giving your skin the proper amount of light hydration.
- You have Combination-Type Skin: Your skin has multiple things going on at once: you experience your T-zone to be on the oily side, while the rest of your face is either normal or dry.
Tip
Make the heading stand out with markdown language. Use the
#
sign before a sentence can make it bold. -
Add Display Logic: If we don’t add Display Logic to the quiz, our blocks will just appear one after the other on the Results Page, regardless of the choice we made. To add Display Logic, select a content block and click on
display logic
. Next, clickadd display logic
. Set up IF-THEN statements to control when each content block should be visible or hidden based on the customer's choices. -
Publish the changes: Click the top-right
Publish
button to update the preview/live quiz.
Scenario
You want to show a custom text block based on the customer's answer to a question. Imagine creating a quiz that determines a personalized skincare routine. Question 4 might ask about the participant's skin type, and depending on the answer, a different text and recommendation about their skincare is shown on the Results Page. This individualized response is made possible by Display Logic.
Implementation
-
Create Quiz: Open the Quiz Builder and add a
Multiple choice question
asking the customer about their skin type: Dry, Normal, Oily, or Combination-type skin.Tip
Use the description box in
Question Settings -> Show Description
to help customers determine their skin type. -
Add Content Blocks to Results Page: Go to the Results Page and add a new
content block
. To add a content block click the+
sign and selectContent Block
from the list. Add multiple content blocks describing the specific skin type and its challenges. For example:Example
- You have Dry Skin: The itchiness, tightness and dryness – we know your struggle! Your skin wants a routine that’s deeply nourishing and hydrating.
- You have Normal Skin: Your skin feels balanced, just like you! Even though your skin doesn’t experience major issues, it deserves amazing care! Your skin wants a routine that sustains your skin’s natural harmony.
- You have Oily Skin: Your skin is oh-so shiny, but with excess oil instead of your natural glow! Your skin wants a routine that reduces oil to provide balance and clarity, all while giving your skin the proper amount of light hydration.
- You have Combination-Type Skin: Your skin has multiple things going on at once: you experience your T-zone to be on the oily side, while the rest of your face is either normal or dry.
Tip
Make the heading stand out with markdown language. Use the
#
sign before a sentence can make it bold. -
Add Display Logic: If we don’t add Display Logic to the quiz, our blocks will just appear one after the other on the Results Page, regardless of the choice we made. To add Display Logic, select a content block and click on
display logic
. Next, clickadd display logic
. Set up IF-THEN statements to control when each content block should be visible or hidden based on the customer's choices. -
Publish the changes: Click the top-right
Publish
button to update the preview/live quiz.
Scenario
You want to show a custom text block based on the customer's answer to a question. Imagine creating a quiz that determines a personalized skincare routine. Question 4 might ask about the participant's skin type, and depending on the answer, a different text and recommendation about their skincare is shown on the Results Page. This individualized response is made possible by Display Logic.
Implementation
-
Create Quiz: Open the Quiz Builder and add a
Multiple choice question
asking the customer about their skin type: Dry, Normal, Oily, or Combination-type skin.Tip
Use the description box in
Question Settings -> Show Description
to help customers determine their skin type. -
Add Content Blocks to Results Page: Go to the Results Page and add a new
content block
. To add a content block click the+
sign and selectContent Block
from the list. Add multiple content blocks describing the specific skin type and its challenges. For example:Example
- You have Dry Skin: The itchiness, tightness and dryness – we know your struggle! Your skin wants a routine that’s deeply nourishing and hydrating.
- You have Normal Skin: Your skin feels balanced, just like you! Even though your skin doesn’t experience major issues, it deserves amazing care! Your skin wants a routine that sustains your skin’s natural harmony.
- You have Oily Skin: Your skin is oh-so shiny, but with excess oil instead of your natural glow! Your skin wants a routine that reduces oil to provide balance and clarity, all while giving your skin the proper amount of light hydration.
- You have Combination-Type Skin: Your skin has multiple things going on at once: you experience your T-zone to be on the oily side, while the rest of your face is either normal or dry.
Tip
Make the heading stand out with markdown language. Use the
#
sign before a sentence can make it bold. -
Add Display Logic: If we don’t add Display Logic to the quiz, our blocks will just appear one after the other on the Results Page, regardless of the choice we made. To add Display Logic, select a content block and click on
display logic
. Next, clickadd display logic
. Set up IF-THEN statements to control when each content block should be visible or hidden based on the customer's choices. -
Publish the changes: Click the top-right
Publish
button to update the preview/live quiz.
Scenario
You want to show a custom text block based on the customer's answer to a question. Imagine creating a quiz that determines a personalized skincare routine. Question 4 might ask about the participant's skin type, and depending on the answer, a different text and recommendation about their skincare is shown on the Results Page. This individualized response is made possible by Display Logic.
Implementation
-
Create Quiz: Open the Quiz Builder and add a
Multiple choice question
asking the customer about their skin type: Dry, Normal, Oily, or Combination-type skin.Tip
Use the description box in
Question Settings -> Show Description
to help customers determine their skin type. -
Add Content Blocks to Results Page: Go to the Results Page and add a new
content block
. To add a content block click the+
sign and selectContent Block
from the list. Add multiple content blocks describing the specific skin type and its challenges. For example:Example
- You have Dry Skin: The itchiness, tightness and dryness – we know your struggle! Your skin wants a routine that’s deeply nourishing and hydrating.
- You have Normal Skin: Your skin feels balanced, just like you! Even though your skin doesn’t experience major issues, it deserves amazing care! Your skin wants a routine that sustains your skin’s natural harmony.
- You have Oily Skin: Your skin is oh-so shiny, but with excess oil instead of your natural glow! Your skin wants a routine that reduces oil to provide balance and clarity, all while giving your skin the proper amount of light hydration.
- You have Combination-Type Skin: Your skin has multiple things going on at once: you experience your T-zone to be on the oily side, while the rest of your face is either normal or dry.
Tip
Make the heading stand out with markdown language. Use the
#
sign before a sentence can make it bold. -
Add Display Logic: If we don’t add Display Logic to the quiz, our blocks will just appear one after the other on the Results Page, regardless of the choice we made. To add Display Logic, select a content block and click on
display logic
. Next, clickadd display logic
. Set up IF-THEN statements to control when each content block should be visible or hidden based on the customer's choices. -
Publish the changes: Click the top-right
Publish
button to update the preview/live quiz.
Diplsay Logic Based on Winning Variable¶
Scenario
You're building a personality-type or Dosha quiz. You want to show a different text and product recommendations based on the winning variable. For examples, if the user chooses mostly A's, B's, C's, etc. a different section with different text and product recommendations is shown.
Implementation
Custom Scores or variables are not natively supported in the legacy version of the RevenueHunt app. In this version of the app displaying content based on a custom score or variable is only possible via custom JavaScript and may require help from a developer.
Check our How to Add JavaScript guide for more information on implementing custom JavaScript into your product recommendation quiz.
Scenario
You're building a personality-type or Dosha quiz. You want to show a different text and product recommendations based on the winning variable. For examples, if the user chooses mostly A's, B's, C's, etc. a different section with different text and product recommendations is shown.
Implementation
Step 1: Add Questions, Choices and Custom Variables
The quiz consists of five questions, each with five choices. Each choice is associated with a custom variable and a score via the Choices Settings
section.
Each answer contributes a score of +1 to the corresponding skin type variable:
- Dry skin:
dry +1
- Normal skin:
normal +1
- Oily skin:
oily +1
- Combination skin:
combination +1
- Sensitive skin:
sensitive +1
This scoring will help determine the user's skin type based on their responses.
Step 2: Add Sections to the Results Page
The results page contains five sections, each corresponding to a skin type. Each section contains a heading, text and a product block to recommend products for that skin type.
Each section can display recommended products in a product block based on user responses or fixed recommendations:
- Dynamic Recommendations: Requires upvoting products via choice settings to influence the recommendation algorithm.
- Fixed Recommendations: Set specific products to always display for each skin type section by changing the recommendation system to fixed and selecting items for each block. Ensure to configure fixed recommendations for all sections to provide consistent product suggestions.
Change the Recommendation System
in the Product Block Settings
to whatever best suits your needs. For a personality-type quiz, we recommend using Fixed Recommendations
and selecting products for each section.
Step 3: Add Display Logic to the Sections
To display the correct section based on the highest scoring variable, follow these steps:
-
Go to Section Settings, find
Display Logic
and click+ Add condition (OR)
. -
Set up the rule like this:
- If
The variable with the highest score
is
-dry
- THEN this section is VISIBLE
- Set the
Default visibility
toHidden
.
- If
-
For each skin type, set a similar rule for the visibility condition:
- If the highest score is
dry
, show the dry skin section. - If the highest score is
normal
, show the normal skin section. - If the highest score is
oily
, show the oily skin section. - If the highest score is
combination
, show the combination section. - If the highest score is
sensitive
, show the sensitive skin section.
- If the highest score is
Step 4: Save and Test the Setup
Publish the changes with the top-right Save
button to update the preview/live quiz and click Preview
to test the setup. Select answers that correspond to a specific skin type (e.g., mostly dry skin). Verify that the correct results section is displayed based on the selected answers.
Scenario
You're building a personality-type or Dosha quiz. You want to show a different text and product recommendations based on the winning variable. For examples, if the user chooses mostly A's, B's, C's, etc. a different section with different text and product recommendations is shown.
Implementation
Custom Scores or variables are not natively supported in the WooCommerce version of the RevenueHunt app. In this version of the app displaying content based on a custom score or variable is only possible via custom JavaScript and may require help from a developer.
Check our How to Add JavaScript guide for more information on implementing custom JavaScript into your product recommendation quiz.
Scenario
You're building a personality-type or Dosha quiz. You want to show a different text and product recommendations based on the winning variable. For examples, if the user chooses mostly A's, B's, C's, etc. a different section with different text and product recommendations is shown.
Implementation
Custom Scores or variables are not natively supported in the Magento version of the RevenueHunt app. In this version of the app displaying content based on a custom score or variable is only possible via custom JavaScript and may require help from a developer.
Check our How to Add JavaScript guide for more information on implementing custom JavaScript into your product recommendation quiz.
Scenario
You're building a personality-type or Dosha quiz. You want to show a different text and product recommendations based on the winning variable. For examples, if the user chooses mostly A's, B's, C's, etc. a different section with different text and product recommendations is shown.
Implementation
Custom Scores or variables are not natively supported in the BigCommerce version of the RevenueHunt app. In this version of the app displaying content based on a custom score or variable is only possible via custom JavaScript and may require help from a developer.
Check our How to Add JavaScript guide for more information on implementing custom JavaScript into your product recommendation quiz.
Scenario
You're building a personality-type or Dosha quiz. You want to show a different text and product recommendations based on the winning variable. For examples, if the user chooses mostly A's, B's, C's, etc. a different section with different text and product recommendations is shown.
Implementation
Custom Scores or variables are not natively supported in the standalone version of the RevenueHunt app. In this version of the app displaying content based on a custom score or variable is only possible via custom JavaScript and may require help from a developer.
Check our How to Add JavaScript guide for more information on implementing custom JavaScript into your product recommendation quiz.
Display Logic Based on Custom Score¶
Scenario
You're building a custom scoring or presonality-type quiz. You want to show a different text and product recommendations based on the score of a variable. For examples, if the user's score is above 50, a different section with different text and product recommendations is shown.
Implementation
Custom Scores or variables are not natively supported in the legacy version of the RevenueHunt app. In this version of the app displaying content based on a custom score or variable is only possible via custom JavaScript and may require help from a developer.
Check our How to Add JavaScript guide for more information on implementing custom JavaScript into your product recommendation quiz.
Scenario
You're building a custom scoring or presonality-type quiz. You want to show a different text and product recommendations based on the score of a variable. For examples, if the user's score is above 50, a different section with different text and product recommendations is shown.
Implementation
Step 1: Add Questions, Choices and Custom Variables
The quiz consists of five questions, each with five choices. Each choice is associated with a custom score via the Choices Settings
section.
Each answer contributes a score of +1 to the corresponding skin type variable:
- First choice: 1 point
- Second choice: 2 points
- Third choice: 3 points
- Fourth choice: 4 points
- Fifth choice: 5 points
The total score helps determine the user's skin type based on their selections.
Step 2: Add Sections to the Results Page
The results page contains five sections, each corresponding to a skin type. Each section contains a heading, text and a product block to recommend products for that skin type.
Each section can display recommended products in a product block based on user responses or fixed recommendations:
- Dynamic Recommendations: Requires upvoting products via choice settings to influence the recommendation algorithm.
- Fixed Recommendations: Set specific products to always display for each skin type section by changing the recommendation system to fixed and selecting items for each block. Ensure to configure fixed recommendations for all sections to provide consistent product suggestions.
Change the Recommendation System
in the Product Block Settings
to whatever best suits your needs. For a personality-type quiz, we recommend using Fixed Recommendations
and selecting products for each section.
Step 3: Add Display Logic to the Sections
To display the correct section based on the total score, follow these steps:
-
Go to Section Settings, find
Display Logic
and click+ Add condition (OR)
. -
Set up the rule like this:
- If
The score of a variable
select the varaiblescore
is greater than or equal to
-5
- AND
- IF
The score of a variable
select the varaiblescore
is less than or equal to
-7
- THEN this section is VISIBLE
- Set the
Default visibility
toHidden
.
- If
-
For each skin type, set a similar rule for the visibility condition:
- Show dry skin section if score is between 5 and 7 (inclusive). Condition:
score >= 5 && score <= 7
- Show normal skin section if score is between 8 and 12 (inclusive). Condition:
score >= 8 && score <= 12
- Show oily skin section if score is between 13 and 17 (inclusive). Condition:
score >= 13 && score <= 17
- Show combination skin section if score is between 18 and 22 (inclusive). Condition:
score >= 18 && score <= 22
- Show sensitive skin section if score is between 23 and 25 (inclusive). Condition:
score >= 23 && score <= 25
- Show dry skin section if score is between 5 and 7 (inclusive). Condition:
Step 4: Save and Test the Setup
Publish the changes with the top-right Save
button to update the preview/live quiz and click Preview
to test the setup. Select answers that correspond to a specific skin type (e.g., mostly dry skin). Verify that the correct results section is displayed based on the selected answers.
Scenario
You're building a custom scoring or presonality-type quiz. You want to show a different text and product recommendations based on the score of a variable. For examples, if the user's score is above 50, a different section with different text and product recommendations is shown.
Implementation
Custom Scores or variables are not natively supported in the legacy version of the RevenueHunt app. In this version of the app displaying content based on a custom score or variable is only possible via custom JavaScript and may require help from a developer.
Check our How to Add JavaScript guide for more information on implementing custom JavaScript into your product recommendation quiz.
Scenario
You're building a custom scoring or presonality-type quiz. You want to show a different text and product recommendations based on the score of a variable. For examples, if the user's score is above 50, a different section with different text and product recommendations is shown.
Implementation
Custom Scores or variables are not natively supported in the Magento version of the RevenueHunt app. In this version of the app displaying content based on a custom score or variable is only possible via custom JavaScript and may require help from a developer.
Check our How to Add JavaScript guide for more information on implementing custom JavaScript into your product recommendation quiz.
Scenario
You're building a custom scoring or presonality-type quiz. You want to show a different text and product recommendations based on the score of a variable. For examples, if the user's score is above 50, a different section with different text and product recommendations is shown.
Implementation
Custom Scores or variables are not natively supported in the BigCommerce version of the RevenueHunt app. In this version of the app displaying content based on a custom score or variable is only possible via custom JavaScript and may require help from a developer.
Check our How to Add JavaScript guide for more information on implementing custom JavaScript into your product recommendation quiz.
Scenario
You're building a custom scoring or presonality-type quiz. You want to show a different text and product recommendations based on the score of a variable. For examples, if the user's score is above 50, a different section with different text and product recommendations is shown.
Implementation
Custom Scores or variables are not natively supported in the standalone version of the RevenueHunt app. In this version of the app displaying content based on a custom score or variable is only possible via custom JavaScript and may require help from a developer.
Check our How to Add JavaScript guide for more information on implementing custom JavaScript into your product recommendation quiz.
Additional Resources¶
Understanding conditional logic can be challenging. Resources such as WolframAlpha and Khan Academy offer tutorials on AND/OR logic, which can enhance your ability to create effective and complex quiz flows.
This guide explains what is Display Logic and how to use it in Product Recommendation Quiz to show or hide content based on customer's responses to questions, the score of a variable (custom scoring quiz, personality-type quiz), or the variable with the highest score (personality-type quiz).