For the managed package runtime, enable users to enter a number by adding the Number element to your Omniscript. Limit what the user can enter by setting a mask.
This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.
- Drag a Number 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, set the allowable format the user can enter. See
JavaScript Number Formatter.
Note
The # symbol and the integers 1-9 represent a digit in the field. You can separate the integers by using commas and a single decimal. The decimal is only applied if a user enters it into the field. For example, the mask ###,###.## transforms an input of 123456.78 into 123,456.78.
Enter a + or - symbol to return a positive or negative integer. A + or - symbol in the Mask property is ignored.
- (Optional) For Validation Options and other additional properties, see Common Omniscript Element Properties Definitions (Managed Package).