Single Line Text Options Object
Last updated
Was this helpful?
The “Single-line text” parameter is the usual input field supported with the standard constraints which are optional by default. The value type is string.
name
string
Label of a widget.
Example: Segment
placeholderText
string
Provides default text within the control when no selection is not made.
Example: Commercial
hintText
string
Provides help text describing what value is expected in control.
Example: Define segment value
defaultValue
string
(optional) Default value.
Example: Commercial
minChar
int
(optional) Defines minimum length of characters. Example: 3
maxChar
int
(optional) Defines maximum length of characters. Example: 100
pattern
string
(optional) RegEx pattern to be validated against provided value.
Example: \w+00
{
"name": "Segment",
"placeholderText": "Specify segment",
"hintText": "Commercial",
"minChar": 10,
"maxChar": 20,
"pattern": "[A-Za-z]*"
"defaultValue": "def"
}Last updated
Was this helpful?
Was this helpful?
"Medical Segment"