Multiline Input (AI Assistant)
This page provides information on using the Multiline Input widget (available in AI Assistant Apps), which allows you to capture and validate longer user inputs.
Content properties
These properties are customizable options present in the property pane of the widget, allowing users to modify the widget according to their preferences.
Type
Data type string
The Data Type property defines the type of input for the widget. For the Multiline Input widget, the Data Type is set to Multi-line text by default. If you change the data type, the widget’s properties and behavior adjust accordingly to match the selected input type.
Options:
- Single-line text: Accepts a single line of text, such as names or titles. Additional text beyond one line is not displayed.
- Multi-line text: Allows multiple lines of text, ideal for longer entries like comments or descriptions.
- Number: Accepts only numeric values.
- Password: Masks input for sensitive information such as passwords or pins.
- Email: Validates and accepts text in email format.
- Phone number: Accepts phone numbers, often formatted with country code and dashes.
- Currency: Accepts numeric input displayed in currency format.
- Date: Accepts date input, with a datepicker for selection.
Data
Value string
Defines the initial value displayed in the widget when it loads. This value serves as the default input until the user modifies it.
Label
The Label property is a group of customizable settings that define the main text displayed on the widget.
Text string
Specifies the text displayed as the label on the widget. This can be used to indicate the purpose or function of the widget.
Validation
The Validation properties ensure that the input provided by users meets specific criteria. These settings allow you to define rules and conditions to validate the data entered into the widget
Required boolean
This validation feature allows you to designate the Input as a mandatory field. For instance, when the Input is placed within a Form widget, enabling the Required property ensures that the Form's submit button remains disabled until the Input has some value.
Max characters number
Defines the maximum number of characters a user can enter. This property is available only when the Data Type is set to Single-line text or Multi-line text.
Spellcheck boolean
When enabled, the widget automatically checks for spelling errors and highlights them, with a red underline. This property is applicable to Single-line text and Multi-line text data types.