Skip to main content

FV Decipher Support

All the topics, resources needed for FV Decipher.

FocusVision Knowledge Base

Number Question XML

1:  Overview

The number element is an open-ended question type that enables respondents to provide an integer value for a list of options.

It is also possible to collect float (decimal) values, but you must specify the element as a <float> type rather than a <number> type. The information below still applies.

The examples below demonstrate the different layouts available when working with number questions.

2:  1-Dimensional

 

A 1-dimensional number question requires an integer value to be provided for each row or column.

2.1:  With No Rows

When no row elements are specified, the number input box will appear directly beneath the question title.

In this example, the respondent must provide a single integer value.

<number label="Q1" optional="0" size="3">
  <title>
    Please enter your age.
   </title>
   <comment>Please enter a whole number</comment>
</number>                                    

2.2:  With Rows Only

When only row elements are specified, the number question defaults to grouping by rows. This means that a number must be provided for each row.

In this example, there are three row elements and no column elements. The respondent must account for the number of items owned for each row.

<number label="Q2" optional="0" size="3">
  <title>
    How many of the following items do you currently own?
  </title>
  <comment>Please enter a whole number for each row</comment>
  <row label="r1">TVs</row>
  <row label="r2">Computers</row>
  <row label="r3">Vehicles</row>
</number>                            

2.3:  With Rows and a Column Header

This example is similar to the one above and demonstrates the differences when a column element is added. We now have the ability to specify text for a column header.

In this example, there are three row elements and a single column element. The respondent must provide an integer value for all three input boxes.

<number label="Q2" optional="0" size="3">
  <title>
    How many of the following items do you currently own?
  </title>
  <comment>Please enter a whole number for each row</comment>
  <col label="c1"># Owned</col>
  <row label="r1">TVs</row>
  <row label="r2">Computers</row>
  <row label="r3">Vehicles</row>
</number>                            

2.4:  With Columns Only

When only column elements are specified, the number question defaults to grouping by columns. This means that a number must be provided for each column.

In this example, there are three column elements and no row elements. The respondent must provide an integer value for each of the meals provided.

<number label="Q3" optional="0" size="1">
  <title>
    How many times a week do you eat the following meals?
  </title>
  <comment>Please enter a whole number for each column</comment>
  <col label="c1">Breakfast</col>
  <col label="c2">Lunch</col>
  <col label="c3">Dinner</col>
</number>                            

2.5:  With Columns and a Row Legend

This example is similar to the one above and demonstrates the difference when a row element is added. We now have the ability to specify text for a row legend.

In this example, there are three row elements and a single row element. The respondent must provide a value for the three input boxes.

<number label="Q3" optional="0" size="1">
  <title>
    How many times a week do you eat the following meals?
  </title>
  <comment>Please enter a whole number for each column</comment>
  <row label="r1"># of meals eaten</row>
  <col label="c1">Breakfast</col>
  <col label="c2">Lunch</col>
  <col label="c3">Dinner</col>
</number>                            

3:  2-Dimensional

A 2-dimensional number question requires an integer value to be provided for each row and column.

3.1:  Grouped by Rows

When multiple row and column elements are specified, the number question defaults to grouping by rows.

In this example, the respondent is asked to rate each aspect relative to the car brands provided. The question is equipped with the verify and unique attribute, transforming this question into an ideal candidate for ranking questions. The verify attribute ensures the integer values provided are 1 - 4 and the unique attribute ensures that each value is unique per row. This means that a respondent must use the values 1 - 4 without duplication.

<number label="Q7" optional="0" size="1" unique="1" verify="range(1, 4)">
  <title>
    On a scale from 1 - 4, please rate the following aspects of each car brand.
  </title>
  <col label="c1">Luxorious</col>
  <col label="c2">Fast</col>
  <col label="c3">Affordable</col>
  <col label="c4">Good MPG</col>
  <row label="r1">Tesla</row>
  <row label="r2">Toyota</row>
  <row label="r3">BMW</row>
  <row label="r4">Ford</row>
</number>                           

3.2:  Grouped by Columns

In contrast to the example above, this example is grouped by columns.

In this example, the respondent is asked to rate which car brands excel in the aspects provided. Since the verify and unique attributes are still set, the respondent must provide a unique value from 1 - 4 for each column, rather than for each row. Illustrated in the screenshot to the left, you'll notice that Tesla is doing fabulously well in most of the areas.

<number label="Q8" optional="0" size="1" unique="1" verify="range(1, 4)" grouping="cols">
   <title>
     On a scale from 1 - 4, please rate which car brands excel in the following areas.
   </title>
   <col label="c1">Luxorious</col>
   <col label="c2">Fast</col>
   <col label="c3">Affordable</col>
   <col label="c4">Good MPG</col>
   <row label="r1">Tesla</row>
   <row label="r2">Toyota</row>
   <row label="r3">BMW</row>
   <row label="r4">Ford</row>
</number>

4:  What's Next?

Learn more: Number Question Attributes & Number Element

  • Was this article helpful?