For the managed package runtime, enable users to enter a phone number by adding a Telephone element to your Omniscript. Limit the length and format of the number the user can enter.
This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.
- Drag a Telephone element from the Build panel onto the canvas.
- In the Properties panel, give the element a name in the Name field.
- In Field Label, enter a label visible to the user.
-
In Mask, update the allowable format by entering a custom pattern.
The default is (999) 999-9999, which matches any US-based phone number. For more information about patterns, see Pattern Mask at https://imask.js.org/guide.html#masked-pattern.
- In Minimum Length, update the minimum number of characters the user must enter.
- In Maximum length, update the maximum number of characters the user can enter.
- For Validation Options and other additional properties, see Common Omniscript Element Properties Definitions (Managed Package).