Personality quiz
Ce contenu n’est pas encore disponible dans votre langue.
Create a personality quiz that assigns a profile to the user based on their answers. Each answer increments the score of a specific profile, and the profile with the highest score is displayed at the end.
Personality Test
Ajoutez ce template en quelques clics à votre compte. Modifiez et personnalisez-le en toute liberté.
→ Ajouter ce template à votre compteHow a personality quiz works
A personality quiz relies on a score calculation system based on user responses. The logic is simple:
- Each profile has its own variable (e.g., profile_explorer, profile_creative, profile_strategist)
- Each answer increments the score of a specific profile
- At the end of the quiz, scores are compared using conditions
- The screen for the winning profile is displayed
This tutorial is suitable for beginners with basic knowledge of variables and conditions.
Step 1: Create score variables
Create a variable for each possible profile.
- Add a PandaSuite Database at the Project level
- Click Add property for each profile
- Choose the Number type and set the default value to
0
Example with 3 profiles:
- Variable
score_explorer: Number = 0 - Variable
score_creative: Number = 0 - Variable
score_strategist: Number = 0
Step 2: Increment scores based on answers
For each answer button, configure an action that increments the corresponding profile variable.
- Select an answer button
- Go to Actions > trigger Tap / click
- Add the action Act on a data source > select your PandaSuite database
- Choose Modify data > select the profile variable
- Function: Increment > Value:
1
Example: The button “I love exploring new places” increments score_explorer by 1.
You can increment by different values depending on the importance of the question (e.g., +2 points for certain key questions).
Step 3: Compare scores at the end of the quiz
After the last question, use a Condition component to determine which profile has the highest score.
- Add a Condition component at the Project level
- Create one condition per profile (e.g., “Explorer Profile Winner”)
- Configure the expressions to compare scores:
Example for “Explorer Profile Winner”:
- Expression 1:
score_explorerGreater than or equal toscore_creative - Logic: AND (all expressions must be true)
- Expression 2:
score_explorerGreater than or equal toscore_strategist
Repeat this configuration for each profile.
You can handle ties by adding additional conditions or defining a priority order.
Step 4: Display the correct profile
Configure navigation to the result screen corresponding to the winning profile.
- Select the last button (or transition screen)
- In Actions > trigger Tap / click
- Add the action Trigger > select your Condition component > Evaluate
- In the Condition component, for each profile condition:
- Trigger: Condition evaluation
- Action: Go to screen > select the corresponding profile screen
Example: When “Explorer Profile Winner” is true, the action Go to screen redirects to “Explorer Result Screen”.
Video tutorial (older method)
The video below presents an older alternative method using a simple correct answer counter instead of a score-per-profile system. While functional, the approach described in this tutorial (with multiple variables and conditions) is more flexible and recommended for creating comprehensive personality quizzes.