The Text widget allows users to enter a single line of text. Use this widget to capture short text values such as names, email addresses, phone numbers, identifiers, URLs, and other simple text-based information.
The basic properties of the widget are defined in the General tab and are as follows:
| Property | Description |
|---|---|
| Label | Text displayed to users on the form. The label identifies the purpose of the field. For example,:First name. |
| ID | Unique identifier assigned to the widget. The ID is used internally to identify the field within the form definition. For example, Text070upd. |
| Required | Determines whether users must provide a value before submitting the form. When enabled, the field becomes mandatory. |
| Read-only | Determines whether users can modify the field value. When enabled, the field is displayed but cannot be edited. |
| Colspan | Specifies how many columns the widget occupies within the form layout. Use this property to control field width and alignment within grid-based layouts. |
| Rowspan | Specifies how many rows the widget occupies within the form layout. Use this property to control field height and alignment within grid-based layouts. |
| Placeholder | Default text displayed when the field has no value. Placeholders can be used to provide examples or guidance about the expected input. |
| Tooltip | Help text displayed when users hover over or select the field's help indicator. Tooltips provide additional instructions or context about the field. |
The advanced properties of the widget are defined in the Advanced tab and are as follows:
| Property | Description |
|---|---|
| Default value | Specifies the value displayed when the form opens. Users can modify the value if the field is not configured as read-only. |
| Min length | Specifies the minimum number of characters that can be entered, including spaces. |
| Max length | Specifies the maximum number of characters that can be entered, including spaces. |
| Regex pattern | Defines a regular expression used to validate the
entered value. The form can only be submitted when the value matches the
specified pattern. Common Regex patterns are: Alphanumeric characters without space: ^[a-zA-Z0-9]*$ Alphanumeric characters with space: ^[a-zA-Z0-9 ]*$ Common email addresses: ^([a-zA-Z0–9._%-]+@[a-zA-Z0–9.-]+\.[a-zA-Z]{2,6})*$ Username, meaning an alphanumeric string that may include underscore (_) and dash (-), 3 to 16 characters long: ^[a-z0-9_-]{3,16}$ Date in YYY-MM-dd format: ([12]\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])) URL address with https(s) protocl optional: (https?:\/\/)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*) File path with filename and extension: ((\/|\\|\/\/|https?:\\\\|https?:\/\/)[a-z0-9 _@\-^!#$%&+={}.\/\\\[\]]+)+\.[a-z]+$ |
| Custom Regex Validation Message | Error message displayed when the entered value does not match the regular expression. If not specified, the default message is Enter a different value. |
| Input mask | Defines the format users must follow when entering data. Input masks can restrict the characters that may be entered and enforce a specific pattern. |
| Reversed | Reverses the input mask direction and processes input from right to left. |
| Input mask placeholder | Placeholder text that demonstrates the expected input
mask format. For example, (__)
____-____
for a phone number field. |