Save $1000 expires April 10th, 2026
Thank you, Nonprofit Dreamin!
An exclusive discount for you and your team
An exclusive discount for you and your team
Create Button Collection Variable: To configure custom buttons for a flow screen first create a new flow resource with a Data Type of "Apex-Defined" and Apex Class set to "FlowToolKit_Button". This resource must also be marked as "Allow multiple values (collection)". This collection will be passed to the Form (Buttons) screen component. If your solution requires multiple sets of buttons, create multiple button collection variables, one for each business case. Note: a single button collection can be referenced within multiple screen components. Additional button collection variables are only required if different types of buttons are required.
Buttons are configured and added to the button collection variable via an Apex Action labeled "Add New Button". Drag a new action element onto the flow composer and search for "Add New Button". The Add New Button custom property editor which is outlined below provides an interface for building custom flow buttons. See the documentation and demo component below for more details.
It is important to note that new buttons are added to the button collection variable by setting the Button Collection selector to the related button collection variable . The Add New Button action returns a "buttons" output value which includes the newly configured button.
The order in which buttons are configured within the flow composer, is the order in which the buttons will be displayed within the flow screen component. The example above shows that the "Submit Form Button" will be the first button displayed, follwed by the "Update Contact(s) Button", then the "Reset Values Button", and finally the "Save and New Button".
The component below will allow you to test configuring a custom button to be used within flow screen components. Be sure to reference the Button Preview section for a live preview of the configured button and optional modal.
Note: click the button to preview modal message configuration.
Drag and drop either the Form (Buttons) or the Form (Header) component onto the flow screen. Reference the Form (Buttons) documentation outlined below for configuration details.
The Form (Buttons) component returns an output value that includes the information about the button that was clicked. Store this value within a flow resource and use it within a decision element when applicable.
Select Buttons
Button Display Configuration
Custom buttons are displayed within flow screens via the Form (Buttons) component or the Form (Header) component. The following examples demo how the Form (Buttons) component can display buttons on the screen. The header above which is configured with the Form (Header) component also allows administrators to assign a collection custom buttons.
Form (Buttons) can be aligned to the left, right or center of the screen.
Display Buttons as Grouped or Spaced.
This example shows spaced out buttons.
Form (Buttons) can be configured to show a specified number of buttons.
All other buttons will be added to a button menu.
Form (Buttons) can Display buttons with multiple variants.
see lightning-button documentation for more details
click button below to learn more!