Outcome button attributes
warning
The content on this page is outdated and will not receive updates. For the most up-to-date functionality, refer to Setting up and managing flows.
You can customize outcome buttons by applying attributes.
Default legacy player runtime
You can apply the following attributes directly to an outcome on the flow canvas when running flows with the default legacy player.
A descriptive name is shown for each attribute in the Key field when adding attributes to a presentation step, although the underlying metadata uses the actual key value. For example, the Key field shows "Button CSS Class" as an option when adding an attribute to a presentation step, although this actually maps directly to the classes attribute.
| Key | Value | Description |
|---|---|---|
classesDisplay name: Button CSS Class | string | Apply CSS directly to the outcome button. The string value can consist of multiple entries to build up a CSS class selector, separated by a space character. See CSS reference.For example, a value of btn-outline btn-lg will apply the btn-outline and btn-lg Bootstrap classes to the button.For example, if a custom '.mw-bs .myChosenClassName' style is added to a player (either directly or through a linked stylesheet), this custom style can then be applied to the outcome button using the value 'myChosenClassName'. Outcome buttons can be made transparent by using the ' btn-outline' value. |
displayDisplay name: Icon display mode | string | Allows you to display icons on an outcome button, using any of the following values: • icon: Displays an outcome button as an icon for the type of button selected. For example, an 'Add' button will display a plus icon.• iconandtext: Display both the label text and icon on the outcome button.• iconnobackground: Displays an outcome button as an icon for the type of button selected, but without a background color. For example, an 'Add' button will display a plus icon, but without the green background. |
iconDisplay name: Button icon | string | Outcome buttons do not display an icon by default, but the icon attribute allows you to specify a particular icon to show on a button. The value of the icon attribute should be set to the exact name of the icon from the bootstrap icon set, but with the 'glyphicon-' prefix removed. For example, 'heart', 'plus', and so on.The following common actions and standard icon values may be useful: • Add Value: plus• Apply Value: ok• Back Value: arrow-left• Cancel Value: arrow-left• Delete Value: trash• Edit Value: pencil• Escalate Value: hand-up• Import Value: import• Insert Value: log-in• New Value: new-window• Next Value: arrow-right• Query Value: console• Reject Value: thumbs-down• Remove Value: remove• Save Value: floppy-disk• Submit Value: circle-arrow-down• Update Value: edit• Upsert Value: chevron-up.For a full visual overview of the available Bootstrap icons, see Bootstrap icons. |
sizeDisplay name: Button size | string | This attribute allows you to modify the size of the button; the values you can use map to the standard Bootstrap button size CSS class suffix. See CSS reference. For example: • lg: Style the outcome button as a 'large' button; maps to the '.btn-lg' button size CSS class.• sm: Style the outcome button as a 'small' button; maps to the '.btn-sm' button size CSS class.• xs: Style the outcome button as an 'extra-small' button; maps to the '.btn-xs' button size CSS class. |
targetDisplay name: Button uri 'target' setting | string | Specify the target attribute on the generated anchor step for the uri. This is set to '_blank' by default (so that the page opens in a new window/tab), but can also be set to the following values: • _blank: Load in a new window/tab.• _self: Load in the same frame as it was clicked.• _parent: Load in the parent frameset.• _top: Load in the full body of the window.• framename: Load in a named frame. |
typeDisplay name: Button type | string | In a player using the default 'paper' theme, outcome buttons are displayed with a blue background by default (set by the btn-primary Bootstrap button CSS class). You can override the button appearance using the type attribute, or by changing the What kind of action is this? option in the Appearance section when editing an outcome.The following string values can be used, mapping to the relevant Bootstrap button CSS class type suffix:• default• primary• success• info• warning• danger. The theme applied to your player will define the exact appearance of these button classes. See Player themes. |
uriDisplay name: Button uri | string | Allows you to connect an outcome button to a web page. Instead of the connected step being displayed, the link specified on the outcome will be used to launch the web page in a new browser window/tab. For example, connecting to a presentation step and adding the uri attribute to the outcome with a value of http://www.google.com will launch the Google web site in a new browser tab when the outcome button is clicked. The connected presentation step does not need to contain anything other than dummy content as it simply a placeholder for the outcome to be connected to. |
uriTypeElementPropertyIdDisplay name: Type property id to use for uri | string (GUID) | Set this value to the 'Id' of the property on the type that contains the uri to be opened in a new browser window/tab. This is only supported for outcomes bound to multiple items, such as tables for example. |
Metadata example
This metadata example uses the default legacy player runtime.
"attributes": {
"type": "warning",
"icon": "heart",
"size": "sm",
"display": "iconandtext",
"uri": "https://www.boomi.com",
"uriTypeElementPropertyId": null,
"target": "_blank",
"classes": null
}