Submit a ticket Agent Login
Welcome
Login  Sign up

Numeric Auto Sum

Using Walr’s “No Code” solution, our highly customisable custom questions allow you to modify them without needing to understand any coding or programming.  Everything is presented through options in our “Visualisation”, allowing you to adjust the question to get exactly the format you need.


What is it?

An interactive question that totals up the inputs and validates against allowed values, total.


When to use it?

When you have an allocation that needs to sum up to a specific amount e.g. 100%


What languages are supported?

All Survey Builder languages.

Custom messages can be provided via the question so they can be translated (example provided below).

 

Can I test it?

Survey link: https://survey.walr.com/pXAMk7?qq=4

 

Data

The underlying question type for this question is numeric.

 

In our Analysis & reporting tool:

 


Example:

Setup:

The Numeric Auto Sum can be found in the “Add New Element” section as shown.

 

Here is an example of how to set up the question.

 

This question applies a Numeric Sum validation rule to a numeric question. It automatically calculates the total of all numeric inputs and validates the sum based on defined limits.

  1. When enabled, displays the total row (and sum) at the top of the question.
  2. When enabled, displays the total row (and sum) at the bottom of the question.
  3. Defines optional prefix and suffix text shown beside each numeric input, pipe-separated: Prefix|Suffix e.g. Hours|Minutes
  4. Sets the minimum width (in pixels) for the prefix container.
  5. Sets the minimum width (in pixels) for the suffix container.
  6. Defines the label text shown on the total row (e.g. “Total”).
  7. Sets the minimum width (in pixels) for the total label container.
  8. Controls the text alignment inside the numeric input fields (left, center, right).
  9. Sets the minimum allowed total value required to proceed.
  10. Sets the maximum allowed total value required to proceed.
  11. If greater than 0, forces the total to equal this exact value in order to proceed.
  12. Defines the error message shown when the total does not equal the required overall value. Use [val] as placeholder e.g. Please ensure the total is equal to [val].
  13. Defines the error message shown when the total is outside the allowed range. Use [Min] and [Max] as placeholders e.g. Please ensure the total is between [Min] and [Max].
  14. When enabled, pre-fills all numeric input fields with a default value.
  15. Defines the value used when prefill is enabled.


How It Works:

  • The script continuously calculates the sum of all numeric inputs.
  • The calculated total is displayed in the header and/or footer row (if enabled).
  • If validation rules are not met:
    1. An error message is displayed.
    2. Navigation buttons are disabled.


Validation Logic Priority:

  1. If Overall Value is greater than 0 => the total must equal this value exactly.
  2. If Overall Value is 0 => the total must fall between Min Value and Max Value.
  3. If total is outside the allowed range => navigation is disabled and an error message is shown when trying to proceed.

 

Labels and values can be set up in the example below so they can be dynamically added to the question, or used in translations.

The image shows a user interface with a question prompt asking for the sum of two numbers (064+8), and a list of subject choices for the answer.

AI-generated content may be incorrect.

The image shows a user interface with various numeric auto sum options and text settings for display and formatting.

AI-generated content may be incorrect.


Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.