Milestone Component

Milestone

Function: a!milestoneField()

Displays the completed, current, and future steps of a process or sequence, such as a user's current step in a wizard or the current state of a business process.

Parameters

Name Keyword Types Description

Label

label

Text

Text to display as the field label.

Instructions

instructions

Text

Supplemental text about this field.

Steps

steps

List of Text String

Array of labels describing the sequence of steps.

Links

links

List of Variant

Array of links to apply to the steps. Create links with a!documentDownloadLink(), a!dynamicLink(), a!newsEntryLink(), a!processTaskLink(), a!recordLink(), a!reportLink(), a!safeLink(), a!startProcessLink(), a!submitLink(), a!userRecordLink(), or a!authorizationLink().

Active

active

Number (Integer)

Index of the current step. When null, all steps are in the future. When -1, all steps are completed.

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".

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.

Orientation

orientation

Text

Determines the layout of the milestone steps. Valid values: "HORIZONTAL" (default), "VERTICAL".

Accessibility Text

accessibilityText

Text

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

Notes

  • The Steps array must contain at least two items. Appian recommends using concise text values of similar length and keeping the number of items in the Steps array to seven.
  • There is no maximum character limit for each item in the Steps array; however, text is truncated based on the following:
    • Vertical Orientation: The first three lines of the text displays. The number of characters allowed for each line is determined by the number of steps in the component and the amount of horizontal space reserved for the component.
    • Horizontal Orientation: Text displays on a single line until it runs out of horizontal space.
  • Any tabs, leading or trailing spaces, and leading or trailing line breaks are trimmed. Spaces between words are trimmed down to one space.
  • When viewed on a mobile device, the milestone component scrolls instead of shrinking the step width.
  • The text for the active step is always black. If no link is configured, the text for completed steps is light gray, whereas the text for future steps is dark gray. If a link is configured, the text is accent-colored.
  • The milestone bar is accent-colored above completed and current steps and gray above future steps.
  • The Active argument can't be 0 or greater than the total number of items in the steps array. If it's null, all steps display as future steps. If it's -1, all steps display as completed.
  • Each item in the Links array renders the corresponding item in the Steps array as a link. An item in the Steps array for which there is a null value or no value in the Links array will render as plain text. There is no need to pad the end of the Steps array with null.

Examples

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

Horizontal Milestone

1
2
3
4
5
6
7
8
9
10
11
12
13
=a!milestoneField(
  label: "Home Repair Claim Process",
  instructions: "Customer #2325691",
  steps: {
    "Submit Customer Request", 
    "Set Up On-Site Appt", 
    "File Assessment", 
    "Submit Proposal", 
    "Submit Agreement", 
    "Finalize Repairs"
  },
  active: 3
)

Displays the following:

Vertical Milestone

1
2
3
4
5
6
7
8
9
10
=a!milestoneField(
  steps: {
    "Review Cart", 
    "Billing Information", 
    "Shipping Information", 
    "Confirm Order"
  },
  active: 2,
  orientation: "VERTICAL"
)

Displays the following:

The following patterns include usage of the Milestone Component.

FEEDBACK