For the complete documentation index, see llms.txt. This page is also available as Markdown.

Input Counter

The Input Counter component provides a user-friendly way to enter numbers within a specific range. It's like a mini calculator with an input field and two buttons: one to increase and decrease the val

The Input Counter lets users enter or adjust a numeric value using increment and decrement buttons. It supports number, currency, and percent formatting, configurable min/max bounds, and two display modes — a standard input field or a button-only control.


Overview

Property
Value

Label

Add a deposit amount

Variant

Standard

Type

Currency

Step

10

Min

10

Max

10,000

Style / Header Color

#107cad

Style / Header Font Size

16px

Style / Header Font Weight

500 - Medium


Configuration

To configure it, click the component on the Flow screen. The Edit Counter Component panel opens on the right with three tabs: Properties, Interactions, and Style. The sections below mirror the Properties tab.

Properties

  • Label — text label displayed above the counter.

  • Value — the initial value when the screen loads. Defaults to 0. You can also connect a query directly — set it to an object with objectApiName, selectedFields, and an aggregateFunction (SUM, COUNT, AVG, MIN, MAX) to display a live calculated value.

  • Mode — controls how the counter is displayed:

    • Input (default) — a standard number input field with increment/decrement buttons on either side.

    • Button — button-only mode. The increment and decrement actions are the primary controls, with the value displayed between them (or hidden if Hide Value is enabled). In this mode, Prefix and Suffix text can be shown around the value.

  • Type — the numeric format: Number, Currency, or Percent.

  • Step — the amount added or subtracted on each increment or decrement click.

  • Fraction Digits — number of decimal digits to display (e.g., 2 formats as 1,234.56).

  • Min — minimum acceptable value. The decrement button stops at this value. If a user types a lower value, it snaps to the minimum.

  • Max — maximum acceptable value. The increment button stops at this value. If a user types a higher value, it snaps to the maximum.

  • Variant — label placement: Standard, Label Hidden, Label Inline, or Label Stacked.

  • Required — marks the field as mandatory.

  • Read Only — the counter is visible but the user cannot change the value.

  • Disabled — greys out the component and prevents interaction.

  • Field Level Help — optional tooltip text shown next to the label.

Buttons

The Buttons group appears when Mode is set to Button and provides full customization of the decrement and increment controls:

  • Decrement Button — configure its label, icon name, icon position, and variant.

  • Increment Button — configure its label, icon name, icon position, and variant.


Interactions

Interactions define what happens when users interact with the Counter. Configure them from the Interactions tab of the Edit Counter panel.

Change

Fires when the counter value changes, whether the user types directly into the field or clicks the increment or decrement buttons. Use this to update another component, store the new value, or drive conditional logic downstream.


Output Variables

The Input Counter exposes its current value as an output variable you can reference in your flow after the screen. To use it, select the screen element in Flow Builder, then the Input Counter component.

Output variable
Type
What it returns

Value

Integer

The current counter value. This reflects the number the user set using the increment/decrement buttons or by typing directly.

Example: A product order flow uses an Input Counter for quantity selection. After the screen, use Value to multiply by the unit price and calculate the order total in an Assignment element.


Styling

The Style tab lets you fine-tune the Input Counter's spacing, the field appearance, and each of its parts. Some sections appear only when the matching part is displayed. Configure it from the Style tab of the Edit panel.

Controls the outer spacing around the component, creating space between it and other elements on the screen.

  • Top / Right / Bottom / Left: Adjust the space on each side.

Last updated

Was this helpful?