Text, number, date, and time

The question types described below allow users to type answers or select numbers, dates, and times.

Singleline text

The singleline text question type provides the user with a single text box. If the text exceeds the size of the text box, it remains the same size and scrolls horizontally without line breaks. This is ideal for short answers. You can also apply an input mask to force the input to adhere to a certain format.

This question type is a text question in XLSForm.

Multiline text

The multiline text question type provides the user with a large text box that wraps text to a new line as it's typed. It also accepts carriage returns. This question type is ideal for long answers.

In XLSForm, this question type is a text question with a multiline appearance.

Number

The number question type restricts the user to use numerical values only. By default, it permits a single decimal point. In the Validation section, you can choose for the value to be an integer, which removes the option to use a decimal point.

Instead of the minimum and maximum character count, number questions have minimum and maximum values that prevent the user from submitting their survey unless their answer is within the given range. This behaves in the same way as the constraint column in XLSForm.

In XLSForm, this question type is an integer or decimal question, depending on whether you defined the value as an integer.

Slider

The slider question type can be used to capture integer or decimal input within a specific range, displaying a slider to select a value within a range defined by the survey author.

By default, a slider question provides a slider of values from 1 to 10 and accepts values of any whole number in that range. You can define a new range by setting the following parameters for the question:

  • Start defines the number that appears on the left side of the slider.
  • End defines the number that appears on the right side of the slider.
  • Step defines the numbers between every point on the slider.

For example, the following parameters will create a slider question that accepts every third whole number in a range between 0 and 15: Start=0 End=15 Step=3

You can set the Start value higher than the End value. In this case, the values will count down, rather than up. If any of these parameters aren't set, they will default to 1 for Start, 10 for End, and 1 for Step.

For the appearance, you can change the color and style of the slider. Both of the following values default to white if not set, and if these values are different, a gradient is applied between the two:

  • Start color defines the color that appears on the left side of the range slider.
  • End color defines the color that appears on the right side of the range slider.

Uncheck the Show ticks option to only display the minimum and maximum values on the slider, hiding the lines that indicate positions across the range. This doesn't change the behavior of the question, only the display.

In XLSForm, this question type is a range question with or without the no-ticks appearance.

Date

The date question type provides a calendar to select a date. You can set a default answer for this question as either a specified date or the date of submission for the survey. In the Validation section, you can define a date range from which the user must select.

This question type is a date question in XLSForm.

Time

The time question type allows the user to select a time in a format of hour:minute AM/PM. A drop-down menu allows the user to select times at 15-minute intervals; the selected times are presented in text fields, allowing users to input a more specific time. You can set a default answer for this question as a specified time or the time the survey was loaded.

This question type is a time question in XLSForm.

Date and time

The date and time question type provides a calendar to select the date and a field to select a time. These fields behave in the same way as the date and time question types, respectively, and provide the same controls for default values and validation.

This question type is a dateTime question in XLSForm.

Email

The email question type provides a limited text field that automatically rejects responses that are not in the format of an email address. The only additional options available for this question type are to specify it as a required question or to cache the answer for future responses.

In XLSForm, this question type is a text question with a regular expression applied; it is not the same as an XLSForm email question.

Website

The website question type provides a limited text field that automatically rejects responses that are not in the format of a website URL. The only additional options available for this question type are to specify it as a required question or to cache the answer for future responses.

In XLSForm, this question type is a text question with a regular expression applied.

Barcode

The barcode question type provides a barcode scanner that can be used to populate the question with the coded value contained in a barcode. The coded value can be manually entered if it is human readable. The following barcodes can be scanned by this question: Codabar, Code 39, Code 93, Code 128, EAN-8, EAN-13, ITF, UPC-A, UPC-E, RSS-14, Aztec Code, Data Matrix, PDF417, and QR code. This list cannot be limited by the survey author in the web designer or by the respondent in the web app.

This question type is a barcode question in XLSForm.