|
The Text Field widget is available as a standard widget in the platform and as a web component that can be imported from the Web Component SDK.
|
You can use different types of symbols such as periods, dashes, slashes, and more as separators between characters. |
The Text Field widget is available as a standard widget in the platform and as a web component that can be imported from an SDK. |
Property Name | Description | Base Type | Default Value | Bindable? (Y/N) | Localizable? (Y/N) | ||
---|---|---|---|---|---|---|---|
Text | The text that is displayed in the text field. | STRING | n/a | Y | Y | ||
Label | The text that is displayed in the label of the text field. | STRING | n/a | Y | Y | ||
Counter | Counts and displays the number of characters that are entered in the text field. | BOOLEAN | False | N | N | ||
MaxNumberOfCharacters | Enables you to set a maximum number of characters in the textfield. | NUMBER | 100 | Y | N | ||
HintText | Displays placeholder text that explains what should be entered in the field. | STRING | n/a | N | Y | ||
Disabled | Use this property to disable the widget in the mashup. The widget is displayed in the mashup but you cannot click it. | BOOLEAN | False | Y | N | ||
ReadOnly | Enables you to set the text field as read-only and the user cannot edit the text. | BOOLEAN | False | N | N | ||
Password | Enables you to hide the text field entry. | BOOLEAN | False | N | N | ||
ShowClearText | Enables you to add a Clear button inside the text field, which allows the user to clear the text in the field at run time when the button is clicked. | BOOLEAN | True | N | N | ||
LabelAlignment | Enables you to align the label to the left, right or center. | STRING | Left | N | N | ||
TextAlignment | Enables you to align the text to the left or right in the field. | STRING | Left | N | N | ||
Mask | Enables you to set predefined characters in the text field. In the property configuration field, use “a” to set a alphabetic entries, “9” for numeric entries, and “*” for alphanumeric entries. | STRING | n/a | N | N | ||
TabSequence | The sequence of the widgets in which they are highlighted when the user presses Tab key. | NUMBER | n/a | N | N | ||
CustomClass | Enables you to define the CSS to the top div of the widget. Multiple classes can be entered, separated by space. | STRING | n/a | Y | N | ||
EnterKeyPressed | An event that is triggered when the ENTER key is pressed while editing the text value.
| n/a | n/a | Y | N | ||
FocusLost | An event that is triggered when a user changes the focus by pressing the TAB key or by clicking an area outside the widget while editing the text value.
| n/a | n/a | Y | N | ||
Changed | The event that is triggered when the data of this widget is modified. | n/a | n/a | Y | N | ||
ResetToDefaultValue | Resets the inputs for this widget to their default values. | n/a | n/a | Y | N | ||
Width | The width of the widget. | NUMBER | 273 | N | N | ||
Height | The height of the widget. It is automatically calculated by default. The height increases if you include a label within the text field. | NUMBER | Autosize | N | N | ||
TooltipField | Sets a tooltip text that is displayed when you hover over the widget. | STRING | n/a | Y | Y | ||
TooltipIcon | Sets an icon image for the tooltip of the widget. You can add an image or specify an image URL path. | MEDIA ENTITY | n/a | N | N | ||
Icon | Specifies the icon to display within the text box. | LIST OF SVG ICONS | n/a | N | N |
Property | Description | Base Type | Default Value | Bindable (Y/N) | Localizable (Y/N) | ||
---|---|---|---|---|---|---|---|
CriteriaMessage | The message to display for the validation criteria and when the validation fails. | STRING | n/a | Y | Y | ||
CriteriaMessageDetails | The details to display for the validation criteria and failure message. | STRING | n/a | Y | Y | ||
MaxLength | The maximum length for the text field value. | STRING | n/a | Y | N | ||
MaxLengthFailureMessage | The message to display when the current value exceeds the maximum character length. | STRING | ${value} characters is the maximum | Y | Y | ||
MinLength | The minimum length for the text field value. | STRING | n/a | Y | N | ||
MinLengthFailureMessage | The message to display when the current value is under the minimum character length. | STRING | ${value} characters is the minimum | Y | Y | ||
RequiredMessage | The message to display when value required is set to true and item is not selected. | STRING | A value is required | Y | Y | ||
ShowValidationCriteria | Shows a hint message about the required input when editing the text field. | BOOLEAN | False | Y | N | ||
ShowValidationFailure | Show a failure message when the entered value fails the validation. | BOOLEAN | False | Y | N | ||
ShowValidationSuccess | Show a success message when the entered value is validated as successful. | BOOLEAN | False | Y | N | ||
ShowValidationState | A bindable service that enables you to display the validation state before a user interacts with the widget at run time. By default, the validation state is only displayed after user interaction.
| Service | n/a | In | N | ||
SuccessMessage | The message to display when the validation is successful. | STRING | n/a | Y | Y | ||
SuccessMessageDetails | A secondary message that displays more information about the validation success message. | STRING | n/a | Y | Y | ||
Validate | A bindable event that is triggered when the widget value is changed. Bind this event to a service or a function to apply a validation pattern or expression. | Event | n/a | Y | N | ||
ValidationCriteriaIcon | Sets the SVG icon to display within the hint message for the validation criteria. | IMAGELINK | info | N | N | ||
ValidationFailureIcon | Sets the SVG icon to display within the status message when the validation fails. | IMAGELINK | error | N | N | ||
ValidationOutput | Retrieves the output of the widget validation. Returned values are Undefined,Unvalidated,Valid, orInvalid. | STRING | n/a | Y | N | ||
ValidationState | A bindable property that sets the validation state. You can set this property to Undefined, Unvalidated, Valid, or Invalid. | STRING | Undefined | Y | N | ||
ValidationSuccessIcon | Select an SVG icon to display within the statues message when the validation succeeds. | IMAGELINK | success | N | N | ||
ValueRequired | Require an item in the list to be selected. | BOOLEAN | False | Y | N |