---
schema_version: "1"
id: fc9ac2916ab36fea575cd2de5811aa2fa338ff04ba989fc5f2cf6e2e59ca03f5
title: Omniscripts Text Element (Managed Package)
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.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_omniscripts_text_element.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 97b6879b2e7fd2286a491d97146b9092317cb9cf6f7ebd7da9c1be22d4ed0286
description: For the managed package runtime, 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 (Managed Package)

For the managed package runtime, 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.

![Managed Package app icon](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/resources-global/_corporate/images/managedpackageicon.png) This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see [Omnistudio Help](https://help.salesforce.com/s/articleView?id=xcloud.os_omnistudio_standard.htm&language=en_US).

1. Drag a **Text** element from the Build panel onto the canvas.
2. In the Properties panel, give the element a name in the **Name** field.
3. In **Field Label**, enter a label visible to the user.
4. (Optional) To set the type of information and its format, enter a **Mask** such as (999) 999-9999\[x9999\], which accepts a North American phone number with an optional extension. When you set the Mask property on text fields, Salesforce shows the default error message instead of custom error messages for those fields. See [Pattern Mask](https://imask.js.org/guide.html#masked-pattern).
5. (Optional) In **Minimum Length**, set the minimum length of the text allowed, such as 1.
6. (Optional) In **Maximum Length**, set the maximum length of text allowed, such as 300.
7. (Optional) For **Validation Options** and other additional properties, see [Common Omniscript Element Properties Definitions (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_common_omniscript_element_properties_definitions.htm&release=264.0.0&type=5 "For the managed package runtime, each element also includes an extensible Property set that's specific to the type of element. Use the Properties pane on the Designer to edit these properties. Some common element properties aren’t available in certain elements.").

- **[Text Properties (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_text_properties.htm&release=264.0.0&type=5)**  
    For the managed package runtime, Text properties are configurable from the Properties panel when you select a Text element. With the Text element, enable users to enter a line of text in your Omniscript.