---
schema_version: "1"
id: 9f08aa9955fec59d4f3049a865d732d03a82e04d4c171990e4d4972966325dac
title: Omniscripts Text Element
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_omniscripts_text_element_17292.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_omniscripts_text_element_17292.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 93b8f9bb608d90da74041916a4eb9543abffddd335e9b6c9f0ae41e03fe3abdb
description: Enable users to enter a line of text by adding the Text element to your Omniscript. Limit the length of the text using minimum and maximum values and set allowable information using the mask property.
products:
  - Omnistudio
release: "264"
---
# Omniscripts Text Element

Enable users to enter a line of text by adding the Text element to your Omniscript. Limit the length of the text using minimum and maximum values and set allowable information using the mask property.

To set the type of information and its format, enter a **Mask**.Use **A** for any letter, **9** for any number, **\*** for any character, and **\[ \]** to enclose optional characters. See [Pattern Mask](https://imask.js.org/guide.html#masked-pattern).

When you set the Mask property on text fields, Salesforce shows the default error message instead of custom error messages for those fields.

- In **Minimum Length**, set the minimum number of characters the user must enter, such as 1.
- In **Maximum Length**, set the maximum number of characters the user must enter, such as 300.

For **Validation Options** and other additional properties, see [Common Omniscript Element Properties](https://help.salesforce.com/s/articleView?id=xcloud.os_common_omniscript_element_properties_definitions__10687.htm&release=264.0.0&type=5 "Each Omniscript element has settings, some of which are unique to that element. Some settings are common among the elements, though some of these setting aren’t available in all elements. To edit these settings, use the Properties pane on the Designer.").