User guide · Chapter 17

Native Flow Button

Native Flow Button puts one or more buttons on a Flow screen. An item can be a standard button, a round or square photo, or a picture tile. A click can store a value and move the Flow on.

When to use it

Types and modes

Type sets how each item looks. Mode sets how many items there are.

TypeModeWhat the user seesExample
ButtonUniqueOne button with your label.Review lines.
ButtonCollectionOne button for each record, in a row or joined as a group.One button for each active project.
AvatarUniqueOne round or square picture.A team logo from an image URL.
AvatarCollectionA picture for each record, with the third field as its alternative text.A row of user photos.
Visual PickerUniqueOne tile with a picture and text.A tile for one service.
Visual PickerCollectionA tile for each record.Picture tiles for rentables.

Unique mode shows one item. Collection mode shows one item for each record. A click sets Clicked and can move the Flow on. Neither mode is a multi-select or a radio group. The component has no selected look after a click.

Type Button

Two Native Flow Buttons on the Checkout screen
Desktop. Review lines is a neutral button. Continue is a brand button.
  1. Review lines, the neutral button
  2. Continue, the brand button
The same two buttons on a phone
Phone. The same buttons on a phone. They are stacked.
  1. Review lines, the neutral button
  2. Continue, the brand button

Mode Collection

Several buttons made from records
Desktop. One button for each record. A click does not change how a button looks.
  1. One button for each record
Collection buttons on a phone
Phone. The same buttons on a phone.
  1. One button for each record

Type Avatar

A row of user photos
Desktop. A photo for each user. A click does not change how a photo looks.
  1. The user photos
User photos on a phone
Phone. The same photos on a phone.
  1. The user photos

Type Visual Picker

Picture tiles
Desktop. A tile for each record. A click does not change how a tile looks.
  1. A tile
  2. The picture
  3. The text under the picture
Picture tiles on a phone
Phone. The same tiles on a phone.
  1. A tile

Add it to a screen

  1. In Flow Builder, open the Screen element. In the Components list, find Native Flow Button.
    Native Flow Button highlighted in the Flow Builder components list
    Flow Builder. Find Native Flow Button.
    1. Native Flow Button in the Components list
  2. Drag it onto the screen.
    Native Flow Button on the screen canvas, not yet filled in
    Flow Builder. The Button on the canvas.
    1. Native Flow Button on the screen
  3. Set Mode and Type. The panel then shows the settings that fit.
    Native Flow Button settings panel for Type Button and Mode Unique
    Flow Builder. Settings for Type Button, Mode Unique.
    1. Mode
    2. Type
    3. Variant
    4. Align
    5. Navigation
  4. For a Unique Button, type a Label and pick a Variant. For a Unique Avatar or Visual Picker, type the Image URL and the text. For Collection mode, pick the Collections record collection.
    Native Flow Button settings panel for Type Avatar
    Flow Builder. Type Avatar: Variant is Circle or Square. Size is not on this type.
    1. Type is Avatar
    2. Variant, Circle or Square
    Native Flow Button settings panel for Type Visual Picker
    Flow Builder. Type Visual Picker: Mode, Collections, and Size.
    1. Type is Visual Picker
    2. Mode
    3. Collections
    4. Size
  5. Set Align and Navigation. For a Visual Picker, set Size.
  6. Store the output Clicked in a Text variable.
  7. Run the Flow on desktop and on a phone.

Build the buttons from records

In Collection mode the component builds one item for each record in a collection. Prepare the collection with a Get Records element.

Buttons from projects or other records

  1. Add a Get Records element for the object. Add a filter to remove inactive records. The component reads all records that match the filter.
  2. Choose fields. Pick the field for the button text as the second field. For projects, pick Name.
    Get Records Choose fields with Name as the second field
    Flow Builder. Name is the second field.
    1. Choose fields and let Salesforce do the rest
    2. Name is the second field
  3. In the Button settings, pick that Get Records element in Collections.

User photos

  1. Add a Get Records element for Users. Add a filter to remove inactive users. The component reads all users that match the filter.
  2. Choose fields. Pick SmallPhotoUrl as the second field and Name as the third.
    Get Records Choose fields for Users with SmallPhotoUrl second and Name third
    Flow Builder. SmallPhotoUrl is the second field. Name is the third.
    1. SmallPhotoUrl is the second field
    2. Name is the third field
  3. Set Type to Avatar or Visual Picker, Mode to Collection, and pick that Get Records element in Collections.

Settings

SettingAPI nameTypeDefaultWhat it does
ModemodeTextNot setUnique shows one item. Collection shows one item for each record.
TypetypeTextNot setButton, Avatar, or Visual Picker.
GroupgroupTextNot set (works as No)Collection mode only. Yes joins Button items into one group. No leaves them apart.
CollectionscollectionText, set by the panelNoneCollection mode only. The Get Records element that builds the items.
LabellabelTextNoneUnique, Type Button only. The text on the button.
VariantvariantTextNoneType Button: Neutral, Brand, Destructive, or Success. Type Avatar: Circle or Square.
ImageimageTextNoneUnique, Type Avatar or Visual Picker. The URL of the picture.
Alternative-Text (Avatar) or Text (Visual Picker)alternativeTextNoneUnique only. For Avatar, this is alternative text and is not shown on the screen. For Visual Picker, this is the text under the picture.
SizesizeTextNot setType Visual Picker only. Small is 64 px, Medium is 128 px, Large is 256 px. A blank value uses Large.
AlignalignTextNoneLeft, Center, or Right.
NavigationnavigationTextNoneWhat the Flow does after a click: None, Back, Next, or Finish.

Outputs

OutputAPI nameTypeDirectionDescription
ClickedclickedTextOutputCollection mode with Avatar or Visual Picker: the Id of the record clicked. Unique mode, and Collection mode with Type Button: the text true. Each click replaces the earlier value.

Limits

Worked example: review a rental's lines

The Select Rental Transaction For Contact Flow uses Native Flow Buttons on its Checkout screen. Review lines opens the lines of the chosen rental.

SettingValue
ModeUnique
TypeButton
LabelReview lines
VariantNeutral
AlignLeft
NavigationNext
  1. On the Checkout screen, pick a rental. Review lines is ready to tap. The brand button beside it is Continue.
    Checkout screen with a rental selected and Review lines visible
    Before. Desktop. A rental is selected.
    1. Review lines
    Checkout screen on a phone with Review lines visible
    Before. Phone. A rental is selected.
    1. Review lines, the neutral button
    2. Continue, the brand button
  2. Tap Review lines. The Flow moves to the Review_Details screen. It shows the Rental lines table, a Back to rentals button, which is another Native Flow Button, and a Check Out button.
    Review_Details screen with the Rental lines table, a Back to rentals button and a Check Out button
    After. Desktop. The lines of the rental.
    1. Back to rentals
    2. Check Out
    3. Rental lines
    Review_Details screen on a phone
    After. Phone. The lines of the rental.
    1. Back to rentals
    2. Check Out
    3. Rental lines