Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: CC-BY-SA-4.0
A field for text input.
The following attributes are supported by this element.
A Boolean switch that, if present, puts the cursor in this element on-load so that users can immediately begin typing without having to click inside the element.
A Boolean switch that, if present, turns on input validation. The behavior of the validator can be modified by the error-message and allowed-pattern attributes.
A Boolean switch that, if present, puts a small text field beneath the lower-right corner of the element, displaying the number of characters inside the element.
A Boolean switch that, if present, displays the input area as disabled.
The text to be displayed below the input field, on the left side, if validation fails.
A string that is displayed inside a text field.
This text shrinks and rises up above a text field when the worker starts typing in the field or when the value attribute is set.
An integer that specifies the maximum number of characters allowed by the element. Characters typed or pasted beyond the maximum are ignored.
An integer that specifies the maximum number of rows of text that are allowed within a crowd-text-area. Normally the element expands to accommodate new rows. If this is set, after the number of rows exceeds it, content scrolls upward out of view and a scrollbar control appears.
A string used to represent the element’s data in the output.
A string presented to the user as placeholder text. It disappears after the user puts something in the input area.
An integer that specifies the height of the element in rows of text.
A preset that becomes the default if the worker does not provide input. The preset appears in a text field.
This element has the following parent and child elements. + Parent elements: crowd-form + Child elements: none
This element outputs the name
as a property name and the element’s text contents as the value. Carriage returns in the text are represented as \n
.
Example Sample output for this element
[
{
"textInput1": "This is the text; the text that\nmakes the crowd go wild."
}
]
For more information, see the following. + Amazon SageMaker Ground Truth + HTML Elements Reference