Text, number, date, and time

The question types described below allow users to type answers or select 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 behaves in the same way as a text question in Survey123 Connect.

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.

This question type behaves in the same way as a text question with a multiline appearance in Survey123 Connect.

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 use a check box to state whether the value must be an integer. Checking this box 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.

This question type behaves in the same way as either an integer or a decimal question in Survey123 Connect, depending on whether you defined the value as an integer.

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 behaves in the same way as a date question in Survey123 Connect.

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 behaves in the same way as a time question in Survey123 Connect.

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 behaves in the same way as a dateTime question in Survey123 Connect.

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.

This question type does not behave in the same way as an email question in Survey123 Connect. Instead, this question type acts as a text question with a regular expression applied.

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.

This question type acts as 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 within 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, 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 behaves in the same way as the barcode question in Survey123 Connect.