Text input field
Note
The task interface configuration guide describes the features of the HTML/JS/CSS editor. You can also try creating a text input field in Template Builder.
To add a multi-line text field to a task, use the {{field type="textarea" name="<output field name>"}}
component. Example:
{{field type="textarea" name="result" width="270px" rows=5}}
Add a field of string
type in the output data description. Example:
{
"result": {
"type": "string",
"required": true
}
}
Parameters
Parameter |
Description |
Required |
Default value |
|
Field type: |
yes |
no |
|
Attribute for the output data field. Contains the output field name. |
yes |
no |
|
Text to record in the output data file by default. |
no |
no |
|
The position of popup hints (displayed if the response didn't pass validation). The position is relative to the input field. Supported values:
|
no |
|
|
Size of the field. Supported values: |
no |
|
|
Width of the field. Set in the following units:
You can also use a formula for setting the width. For example, |
no |
depends on the browser and font size |
|
Height of the text field (the number of lines visible without scrolling). Example: |
no |
3 |
|
Whether data can be edited:
|
no |
|
|
Whether the Toloker can change the size of the field:
|
no |
no |
|
The prompt text to display in the empty field. |
no |
no |
|
The CSS class for the field. For example, |
no |
|