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.