Building3 Min.

How to use the number block

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


When to use

Use the number block to let your respondents enter a number, including automated checks for valid number inputs.

Screenshot of a number block in Tripetto
Demonstration of a number block.

How to use

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

Basic features

Each question block has basic features to present the block the way you need, for example Name, Description and Help text. And most of the question blocks have common options, like the Required and Exportability options.

More information about these basic features can be found in the help article about our form builder.

Additional features

On top of those basic features, the number block has the following advanced options:

  • Format

    By enabling the Format feature, you can determine how many decimal places your number input may contain.

  • Signs

    By enabling the Signs feature, you can set what signs to use as decimal sign and thousands separator. Please note that in your forms these signs can be overwritten by the respondent's locale settings. In your dataset the selected signs always will be used.

  • Limit values

    By enabling the Limit values feature, you can enter a minimum and maximum value that respondents can enter.

  • Prefix

    By enabling the Prefix feature, you can enter a label that's shown in front of the entered number value. Optionally you can specify a different prefix for plural values.

  • Suffix

    By enabling the Suffix feature, you can enter a label that's shown at the end of the entered number value. Optionally you can specify a different suffix for plural values.

  • Prefill

    By enabling the Prefill feature, you can set a fixed initial value of the number block (more information about prefilling).

  • Calculator

    By enabling the Calculator feature, you can instantly use all calculator features inside the number block (more information about instant scores).

Screenshot of the form builder in Tripetto
Advanced options of the number block.

Logic

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

Block conditions

  • Number is equal to your filter;
  • Number is not equal to your filter;
  • Number is lower thanyour filter;
  • Number is higher than your filter;
  • Number is between your filters;
  • Number is not between your filters;
  • Number is empty;
  • Number is not empty.

Calculation conditions

  • Calculation is equal to your filter;
  • Calculation is not equal to your filter;
  • Calculation is lower thanyour filter;
  • Calculation is higher than your filter;
  • Calculation is between your filters;
  • Calculation is not between your filters;
  • Calculation is valid;
  • Calculation is not valid.

Filters

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

  • Number - Compare with a fixed number 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 number block supports the following calculation operations:

  • Current value - Supply an entered number;
  • Compare - Compare a number and output a value based on the result of the comparison;
  • Functions - Execute all kinds of mathematical functions to a number.

Discover our form blocks

How to use the...
In this article

    Help us improve