Progress Bar Component

Progress Bar

Function: a!progressBarField()

Displays a completion percentage, such as receiving all the necessary approval tasks, completing a certain number of on-boarding processes, or completing a single process. Similar to the Gauge, but with a bar style rather than a circular style.

Parameters

Name Keyword Types Description

Label

label

Text

Text to display as the field label.

Instructions

instructions

Text

Supplemental text about this field.

Percentage

percentage

Number (Integer)

Number to display between 0 and 100.

Label Position

labelPosition

Text

Determines where the label appears. Valid values:

  • "ABOVE" (default) Displays the label above the component.
  • "ADJACENT" Displays the label to the left of the component.
  • "COLLAPSED" Hides the label. The label will still be read by screen readers; see accessibility considerations for more information.
  • "JUSTIFIED" Aligns the label alongside the component starting at the edge of the page.

Help Tooltip

helpTooltip

Text

Displays a help icon with the specified text as a tooltip. The tooltip displays a maximum of 500 characters. The help icon does not show when the label position is "COLLAPSED".

Accessibility Text

accessibilityText

Text

Additional text to be announced by screen readers. Used only for accessibility; produces no visible change.

Visibility

showWhen

Boolean

Determines whether the component is displayed on the interface. When set to false, the component is hidden and is not evaluated. Default: true.

Notes

  • The Percentage argument cannot be null. It displays as a percentage amount in the middle of the progress bar.
  • If an expression for the Percentage argument results in a decimal number, the system automatically casts the value to an integer.

Examples

Copy and paste an example into the INTERFACE DEFINITION in EXPRESSION MODE to see it displayed.

Progress Bar with a Decimal Percentage

1
2
3
4
=a!progressBarField(
  label: "Evaluations Completed",
  percentage: (20 / 25) * 100
)

Displays the following:

Progress Bar with Percentage Details in the Instructions

1
2
3
4
5
6
7
8
9
=a!localVariables(
  local!readEmails: 143,
  local!totalEmails: 150,
  a!progressBarField(
    label: "Emails Read",
    instructions: local!readEmails & " of " & local!totalEmails & " read",
    percentage: (local!readEmails / totalEmails) * 100
  )
)

Displays the following:

FEEDBACK