The text question type uses the type: text tag to create a single-line field for respondents to enter their input.
1. What word would you use to describe this brand?
type: text
Tip! You can create a larger text area with the type: textbox tag.
Details
- The text question type accepts unlimited text input unless limited by additional tags.
- When no datatype is specified, text questions can accept any character types. Use the
datatypetag to require a specific response type. - Text questions can also be formatted as a simple table using the
type: text tabletag or as an advanced table with thestart tablewidget.
Common tags
Below are common tags associated with the text question type.
| Tag | Description |
datatype |
Specifies the type of input required for a response, such as an email, phone number, ZIP code, numeric, etc. |
|
|
Sets the maximum length of text that can be entered in the text field. |
|
|
Sets the minimum length of text that can be entered in the text field. |
number format |
Specifies the formatting for numerical responses. |
placeholder |
Sets default text in the field that disappears once the respondent starts typing. |
postfix
|
Specifies text to be displayed after the text field. |
prefix
|
Specifies text to be applied before the text field. |
range |
Defines and validates a numeric range. |
size
|
Defines the size (width) of the text field in ems. |
Additional examples
Numeric text questions
When numeric inputs are required, use the datatype tag. You can also include the range, maxlength, or minlength tags to specify the values accepted.
Tip! You can use the HTML code for a non-breaking space ( ) to add extra space before or after the prefix and postfix tags as needed.
Text tables
To create a simple text table, use the type: text table tag and include any necessary formatting tags.
Tip! See Table formatting and display options to learn more about how to modify a text table.
Comments
0 comments
Please sign in to leave a comment.