Building5 Min.

How to use the ranking block

Learn everything you need to know to use the ranking block in your forms.


When to use

Use the ranking block to let your respondents compose a ranking from a list of options you provide them. The respondent can simply drag-and-drop each item to the desired position in the ranking, or select the desired position from each option's dropdown. The ranking block can work in 2 modes:

  • Full ranking - Let your respondents compose a full ranking of all the options you give them.
  • Top ranking - Let your respondents select a certain amount from the options that you give them and let them compose a ranking for their selected options. For example to compose a top-3 from a list of 10 options.
Screenshot of ranking block in Tripetto
Demonstration of a ranking block.

How to use

Add a new block to your form and then select the question type Ranking. You can now customize this block to your needs with the following features:

General

  • Text
    Use the Text feature for the name/title of this block.
  • Description
    Enable the Description feature to add a description to this block.
  • Help text
    Enable the Help text feature to add a help text to this block.

Settings

  • Limits
    Enable the Limits feature to enter a maximum number of options that respondents can rank. If the amount of options is larger than the entered limit, the ranking block will display the options inside that limit as selected.
  • Randomization
    Enable the Randomization feature to present the options in a random order to your respondents (using Fisher–Yates shuffle).

Options

  • Required
    By default this block is not required to fill out by your respondents. Enable the Required feature to make this block required to fill out.
  • Visibility
    By default this block is visible in your form. Enable the Visibility feature to hide it for your respondents.
  • Score
    You can attach scores to the options to perform instant calculations. Enable the Score feature to enter the desired score values. If you enabled the Limits feature, only the selected options will add up to the score.
  • Alias
    By default the name/title of this block will be used in your dataset. Enable the Alias feature to use a different name in your dataset.
  • Data format
    By default the collected data of this block is stored as a separate value per ranking position. Enable the Data format feature to determine how the data is stored in the dataset:
    • Every position as a separate field - Every position is included in the dataset as a separate value, meaning the selected option for that position.
    • Single text field with the ranking - The ranking is merged into a single string of text, separated using a configurable separator.
    • Both - Includes every ranking position in the dataset, together with the concatenated text.
  • Exportability
    By default the collected data of this block will be stored to the dataset of each result. Enable the Exportability feature to take control over the storage. You can then include/exclude the data from your dataset. Please note that if you exclude data from the dataset you can never see and/or use the given answers from your respondents to this block, because the data is simply not stored at all.

Ranking options

Next, you can enter the list of ranking options that you want to provide your respondents:

  • Add options one by one
    Click the icon at the bottom of the list and enter the option name.
  • Import a list of options
    Click the icon at the top of the list. Now supply a list with one option name per text line and click Import to add them all at once to your list of ranking options.
Screenshot of the form builder in Tripetto
Importing options in the ranking block.

From your list of options you can open each option to get to the settings of that single option. Over there you can use these features:

  • Name
    Use the Name feature for the name/title of this option.
  • Description
    Enable the Description feature to extend the option name with a description, for example to show an extra explanation. This description is shown below the name.
  • Identifier
    By default the name of each option will be used in your dataset. Enable the Identifier feature to use a different name in your dataset.
  • Score
    Enable the Score feature to enter the desired score value for that option.
Screenshot of the form builder in Tripetto
Advanced options of the ranking options of the ranking block.

Logic

Logic is important to make your forms smart and conversational. The ranking block can work with the following branch conditions to help you with that:

Block conditions

  • Selected option per ranking position.

Evaluate conditions

  • Value of ranking position matches your filter;
  • Value of ranking position does not match your filter;
  • Value of ranking position contains your filter;
  • Value of ranking position does not contain your filter;
  • Value of ranking position starts with your filter;
  • Value of ranking position ends with your filter;
  • Value of ranking position is empty;
  • Value of ranking position is not empty.

Score conditions

Conditions based on the total score of the selected options:

  • Total score is equal to your filter;
  • Total score is not equal to your filter;
  • Total score is lower thanyour filter;
  • Total score is higher than your filter;
  • Total score is between your filters;
  • Total score is not between your filters;
  • Total score is calculated;
  • Total score is not calculated.

Conditions based on the score of each individual ranking position:

  • Position score is equal to your filter;
  • Position score is not equal to your filter;
  • Position score is lower thanyour filter;
  • Position score is higher than your filter;
  • Position score is between your filters;
  • Position score is not between your filters;
  • Position score is calculated;
  • Position score is not calculated.

Filters

When we mention your filter above, there are some different filters that you can use to make the right comparison:

  • Text - Compare with a fixed text that you enter;
  • Value - Compare with another block value entered in the form by a respondent (more info).

Calculations

You can use the calculator block to perform calculations with given answers. The ranking block supports the following calculation operations:

  • Ranking position:
    • Score - Calculate a score based on the score of the selected option at that position;
    • Compare - Compare the name of the selected option at that position and output a value based on the result of the comparison;
    • Character count - Count the number of characters in the name of the selected option at that position;
    • Word count - Count the number of words in the name of the selected option at that position;
    • Line count - Count the number of lines in the name of the selected option at that position;
    • Count occurrences - Count the number of occurrences of a certain text, character or regular expression in the name of the selected option at that position;
    • Convert to number - Convert the name of the selected option at that position to a number value.
  • Score (total) - Calculate a score based on the total score of the selected options;
  • Score (per ranking position) - Output a value based on the score of the selected option at a certain ranking position.

Discover our form blocks

How to use the...
In this article

    Help us improve