# Text
Defines that step will wait for visitor to type text in input field and send it.
# Add attachment(s)
To add files from your OneReach.ai storage, click on the respective option, then choose the necessary attachments in the modal window of Files. Note that any operations with data (renaming, deleting, etc.) are done throughout your OneReach.ai account and may affect other flows. To add files using links, click URL and specify it manually or declare it with a merge field.
There is no limit on the amount or size of attachments. Each attachment will be added to the message in the order from top to bottom.
Multiple files or links can be chosen via add file button or removed by a click on the bucket icon next to it in the step details panel.
# Input type
Text input component supports several input types:
# Numeric
Allows user to enter only numbers
# Password
User reply will be hidden by *
If a user has any saved emails in the browser they'd be suggested to autofill
# Custom pattern
Custom pattern allows only to add formatting for requested data and doesn't provide validation for it. To specify pattern symbol use next chars:
# - only digits (0-9)
X - [0-9a-zA-Z]
S - [a-zA-Z]
A - [a-zA-Z] will transform to UPPER CASE
a - [a-zA-Z] will transform to lower case
! - escape char pattern and use as a regular symbol
Examples:
To request 4 last credit card digits, use pattern: !#!#!#!# !#!#!#!# !#!#!#!# !#!#!#!# ####
When end-user adds digits (e.g. 4444
) , text input and submitted data will contain : #### #### #### 4444
To request phone number for specific country code, use pattern: +1 (500) ###-##-##
When end-user adds digits (e.g. 1234567
) , text input and submitted data will contain +1 (500) 123-45-67
# Predefined text
It is possible to add predefined text to the input component. Be careful because it can cause conflicts with validation rules (if you add them to the step).
# Output
The output of the step will contain user's reply, its structure will be:
{
userReply: ''
}
# Use function to define user answer
Allows to override default answer by custom message.
# Available variables
The same as output example.
{
userReply: ''
}
# Example
For example user inputs URL to an image and we want to show image in user answer instead of a link. And submit this link: https://www.regens.com/documents/20182/42024/onereach.png/eb52eefe-8056-468d-8d22-20058419d766?t=1528362573534
which is OneReach logo.
When building custom user answer you can use HTML markup to customize text or adding images.
return `Image preview:<br><br><img src="${userReply}"/>`