You are here:
Add a Number Input Element to a Flexcard (Managed Package)
For the managed package runtime, add a Number Input element on a Flexcard to enable users to enter a numeric value. From the Properties panel, configure properties and custom attributes, add an action, and add conditions.
This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.
The user can enter the number or, in supported browsers, use stepper arrows to increase
or decrease the value. When the field is empty, increments starts from 0. To set step increments, see Input Lightning Web Component ReadMe (Managed Package).
Required Versions |
|---|
Available beginning Winter '22. |
- From the Flexcards tab, click a version of a Flexcard to open the Flexcard Designer.
- From the Build panel, click Inputs, and drag the Number element onto the canvas.
- (Optional) From the Properties panel, update the element name in the Element Name field.
-
Configure properties common to all Input elements:
-
(Optional) In Field Binding, bind the value of the input element to an existing or new data field. See Bind a Flexcard Input Value to a Data Field (Managed Package).
-
In Field Label, enter the label that appears next to the element.
-
(Optional) In Placeholder, enter temporary text that displays inside the input field and which suggest to the user what content to enter.
-
(Optional) Check Required if the user must enter or select a value for this input element.
-
(Optional) Check Read-only to disable the ability to modify the input values.
-
(Optional) In Help Text, enter helpful text about the purpose of the input field. This feature adds an info icon (i) next to the element's label, which when hovered over displays the text.
-
- (Optional) Click into Default Value to select a default input value from a merge field. Or, enter a value as plain text.
-
(Optional) In Mask, to help your user enter data correctly,
provide an input mask that formats the data a specific way.
For Mask examples, see JavaScript Number Formatter.To define a minimum and maximum Mask value, add and set the min and max attributes. Don’t use a merge field to set those values.
-
(Optional) To configure additional properties available to the element, click
+ Add New in the Custom Attributes
section. For each new attribute, perform the following tasks:
-
Click into the Attribute field to select from an attribute in the dropdown. See Input Lightning Web Component ReadMe (Managed Package) for available attributes.
-
In the Value field, enter a value for the attribute.
To ensure that a Mask with separators such as commas or a decimal point is interpreted correctly, set the maskWithSeparator attribute to true.
-
- To execute an action when a user interacts with the input element, click + Add Action, and see Add a Click Event to a Flexcard Element (Managed Package).
- (Optional) To add conditions that must be met for the element to display, see Add Conditions to a Flexcard Element (Managed Package).
- (Optional) To style your element, click Style to open the Style panel, and see Style Flexcard Elements (Managed Package).
- Flexcards Number Input Element Properties (Managed Package)
For the managed package runtime, Number Input element properties are configurable in the Properties panel when you select a Number element in the Flexcard Designer. Enable users to enter a numeric value.

