Drop-down list
Note
The task interface configuration guide describes the features of the HTML/JS/CSS editor. You can also try creating a drop-down list in Template Builder.
To add a dropdown list to the task, use {{#field type="select" name="<output field name>"}}... {{/field}}
. The entries in the dropdown list are created using the nested expression {{select_item}}
. Example:
{{#field type="select" name="colour" placeholder="Choose a color" width="200px"}}
{{select_item value="red" text="Red"}}
{{select_item value="green" text="Green"}} {{/field}}
Add a string
field to the output data description.
{
"colour": {
"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 |
|
The name of the dropdown list in the interface. |
no |
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 length of the signature |
|
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 |
|
|
The CSS class for the field. For example, |
no |
|
|
Whether data can be edited:
|
no |
|
|
Direction to expand the list:
|
no |
|
|
Text to write to the output data file if the item is selected. |
no |
no |
|
The name of the list item. |
no |
no |
|
The item selected by default:
|
no |
|