Aller au contenu

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 compte

How a personality quiz works

A personality quiz relies on a score calculation system based on user responses. The logic is simple:

  1. Each profile has its own variable (e.g., profile_explorer, profile_creative, profile_strategist)
  2. Each answer increments the score of a specific profile
  3. At the end of the quiz, scores are compared using conditions
  4. 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.

  1. Add a PandaSuite Database at the Project level
  2. Click Add property for each profile
  3. 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.

  1. Select an answer button
  2. Go to Actions > trigger Tap / click
  3. Add the action Act on a data source > select your PandaSuite database
  4. Choose Modify data > select the profile variable
  5. 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.

  1. Add a Condition component at the Project level
  2. Create one condition per profile (e.g., “Explorer Profile Winner”)
  3. Configure the expressions to compare scores:

Example for “Explorer Profile Winner”:

  • Expression 1: score_explorer Greater than or equal to score_creative
  • Logic: AND (all expressions must be true)
  • Expression 2: score_explorer Greater than or equal to score_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.

  1. Select the last button (or transition screen)
  2. In Actions > trigger Tap / click
  3. Add the action Trigger > select your Condition component > Evaluate
  4. 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.

Going further

  • Variables: understand how variables work
  • Condition: master conditions and logic
  • Score: discover other scoring mechanisms