NC Buttons & Tiles

Not yet released: this component will ship in an upcoming Native Rent package version.

NC Buttons & Tiles shows options as tiles, cards, list rows, buttons, chips, avatars, swatches, small buttons, or a dropdown. People can pick one option or several. Choices can come from typed text, a text collection, a record collection, a picklist field, or a query.

Use it when the choice should be easy to tap, or when icons, images, or faces help. Examples: a plan, add-ons, a size or finish, a crew member, or a Rentable from a Get Records collection.

NC Buttons & Tiles, Tiles layout on desktop: multi-select add-ons with a maximum of two, small square tiles, and large pill tiles.
NC Buttons & Tiles, Tiles layout on desktop: multi-select add-ons with a maximum of two, small square tiles, and large pill tiles.

Layouts

LayoutAPI valueWhat the user seesExample
AutoautoThe component picks a layout. See the rules below.Leave Auto and let the screen adapt to desktop and phone.
TilestilesIcon or short-label tiles in a grid.Contact method: Email, Phone, SMS, Visit, each with an icon.
CardscardsImage or description cards in a grid.Rentables with a picture, name, and short description.
ListlistOne row per choice, with an optional second line, badge, and color cue.Accounts, with Industry on the second line and Rating as a color stripe.
ButtonsbuttonsLarge block buttons with an icon and a label. Up to 6 buttons sit side by side in one joined row when all the labels fit. Otherwise they wrap to the next line, and when the component is 480 px wide or less they stack one per line. If a joined row turns out to be cut off, the buttons wrap at that width or narrower. Each button is at least 44 px tall."Email me", "Call me", "Send a message".
ChipschipsA wrapping pill row for short multi-select.Tags: Urgent, After hours, VIP, with a maximum of 3.
DropdowndropdownA select list. Phones and narrow columns get the native select.A long list of industries.
Small buttonsiconbuttonsAn icon or a few characters. The full label is the tooltip and the accessible name.A compact row of short actions.
AvatarsavatarPhoto or initials faces.Assign a User from a Get Records on User.
SwatchesswatchCompact square chips, filled from the Color Map, or a short label. The selected chip has a ring.Sizes XS to XL, or a set of finish colors.

Auto never picks Chips, Small buttons, Avatars, or Swatches. Set Layout to them yourself.

Buttons layout with icons, and a List layout from Get Records with a second line and a color stripe.
Buttons layout with icons, and a List layout from Get Records with a second line and a color stripe.
Chips layout, multi-select with a maximum of 3.
Chips layout, multi-select with a maximum of 3.
Small buttons layout with icons. Email is selected.
Small buttons layout with icons. Email is selected.
Dropdown layout on desktop.
Dropdown layout on desktop.

With Layout set to dropdown and multi-select, the component shows a list. With Layout set to chips and single-select, it shows a list.

How Auto picks a layout:

  1. More than 12 single-select choices with no images become a dropdown.
  2. On a phone, or when the browser window is under 600 px wide: choices with images become cards. Up to 5 short labels with no descriptions and no icons become one button row, if they fit. Everything else becomes a list, including short sets with icons.
  3. In a browser window 600 px or wider: images become cards, icons become tiles, descriptions become cards, up to 5 short labels become buttons, and everything else becomes tiles. This holds even when the component sits in a narrow column, so a short set with icons stays tiles on desktop.

A short label has 18 characters or fewer.

Auto on desktop: a short set with icons stays tiles, and a long text-only list becomes a dropdown.
Auto on desktop: a short set with icons stays tiles, and a long text-only list becomes a dropdown.

A Style in the Basic section fills only the layout and look settings you leave blank: Big buttons, Icon tiles, Small buttons, or Cards. You can still change each setting. Leave Style blank to keep the original defaults.

Avatars

Use Avatars when the screen picks from a known set of people and a face is the main cue.

  1. In the flow, add Get Records on User. Store SmallPhotoUrl or MediumPhotoUrl, plus Name and Id. Do not rely on "Automatically store all fields". It does not load a photo field the flow does not reference.
  2. In NC Buttons & Tiles, set Data Source to records (or query). Set Record Label Field to Name, Record Value Field to Id, and Record Image URL Field to SmallPhotoUrl or MediumPhotoUrl. Set Layout to Avatars.
  3. Typed choices can use Choice Image URLs instead. Only https:// addresses and same-org paths such as /resource/... are used. Other addresses are dropped.
  4. When there is no image, or it fails to load, the face shows initials: the first letter of the first two words of the label. The background uses the Color Map when a value matches. Otherwise it uses a stable palette color for that choice.
  5. Avatar Size: small, medium (default), or large. That is about 24, 32, or 48 px on desktop, and one step larger on phones, touch screens, and narrow components.
  6. Avatar Shape: circle (default), rounded, or square.
  7. Stack Overlapping Avatars (off by default) shows the faces in an overlapping row. Max Visible Avatars (1 to 50, default 5) sets how many show before a +N bubble. On a phone or a narrow component, tapping +N opens a sheet with the names. On a wide desktop, it expands the row.

Avatar Size, Avatar Shape, and the stack settings apply only to the Avatars layout. On phones the tap area stays at least 44 px, even when the face is smaller.

If a photo does not load, initials show instead.

Swatches and badges

Swatches fill each chip from the Color Map when one matches. Otherwise the chip shows a short label: up to 5 characters, or initials.

Disable When Badge Is 0 (off by default) greys out a choice whose badge is a numeric zero, such as 0 or 0.0. That choice cannot be picked. Text such as "0 available" is not treated as zero.

Swatches filled from hex colors in the Color Map.
Swatches filled from hex colors in the Color Map.
A Swatches row filled from a Color Map, and badge tiles where Out of stock has a badge of 0 and is greyed out.
A Swatches row filled from a Color Map, and badge tiles where Out of stock has a badge of 0 and is greyed out.
Disable When Badge Is 0 on (top row): Out of stock is greyed out. Off (bottom row): it can still be picked.
Disable When Badge Is 0 on (top row): Out of stock is greyed out. Off (bottom row): it can still be picked.

Add it to a screen

  1. Open the flow in Flow Builder and add or open a Screen element.
  2. Add NC Buttons & Tiles. The setup panel opens.
  3. Set Label. Then set Choices (comma-separated, write \, for a comma inside a label) or choose a Data Source: records, a picklist field, a query, or a text collection.
  4. For records: map the Get Records collection and set the label, value, image, badge, and group fields. Set the record object type if you will use Selected Record.
  5. Choose Layout (or leave Auto), Selection Mode, and Required. Optionally set a Color Map and Navigate After Selection.
  6. Map Value in and out of the same text variable. For records, also map Selected Record or Selected Records if you need the record later in the flow.
  7. Debug the flow on desktop and at a narrow width, about 390 px, before you activate it.
The default was Medium. The user picked High, went Next, then Back. High is kept because Value is mapped in and out of the same variable.
The default was Medium. The user picked High, went Next, then Back. High is kept because Value is mapped in and out of the same variable.

When Data Source is auto, the component uses what you fill in: Records set means records, Choice Labels (Collection) set means collection, Object plus Picklist Field means picklist, Object only means query, and otherwise text.

Validation

Minimum Selections 2 with one pick: "Select at least 2." shows on the component.
Minimum Selections 2 with one pick: "Select at least 2." shows on the component.
Required NC Buttons & Tiles and a required NC Picklist after Next. Each shows its own message.
Required NC Buttons & Tiles and a required NC Picklist after Next. Each shows its own message.
NC Buttons & Tiles and NC Picklist bound to an empty collection. Each shows the Empty Message.
NC Buttons & Tiles and NC Picklist bound to an empty collection. Each shows the Empty Message.
Account tiles grouped by Industry, in the order the records first appear, with badges and Color Map tints.
Account tiles grouped by Industry, in the order the records first appear, with badges and Color Map tints.

Phone and desktop

Tiles layout in a desktop browser window about 390 px wide. The tiles stack in one column. This is not the Salesforce mobile app.
Tiles layout in a desktop browser window about 390 px wide. The tiles stack in one column. This is not the Salesforce mobile app.

Limits

Properties

PropertyAPI nameDefaultDescription
StylestylePreset(blank)buttons (Big buttons), icons (Icon tiles), smallbuttons (Small buttons) or cards (Cards). Fills in the layout and look settings you leave blank; you can still set each one. Blank keeps the original defaults.
LabelfieldLabel(blank)Question or field label shown above the component.
ChoiceschoiceLabels(blank)Comma-separated choices, e.g. Small,Medium,Large (use \, for a comma inside one). Or use a picklist field, records or a query (see Data Source).
RequiredrequiredfalseBlock Next until a choice is selected.
Help TexthelpText(blank)Optional hint shown under the label.
Data Sourcesourceautoauto (default), text, collection, records, picklist or query. Auto: Records set to records; Choice Labels (Collection) set to collection; Object + Picklist Field to picklist; Object only to query; else text.
Choice ValueschoiceValues(blank)text source, optional: comma-separated values in the same order. Blank entries use the label.
Choice DescriptionschoiceDescriptions(blank)text source, optional: comma-separated second lines in the same order.
Choice IconschoiceIcons(blank)text source, optional: comma-separated SLDS icon names, e.g. utility:home,utility:company.
Choice Image URLschoiceImages(blank)text source, optional: comma-separated image URLs. Only https:// or same-org paths (/resource/..., /sfc/...).
Choice Labels (Collection)choiceLabelsCollection(blank)collection source: a Text collection variable, e.g. built by an Assignment, a Transform or a Loop.
Choice Values (Collection)choiceValuesCollection(blank)collection source, optional: values in the same order as the labels.
Choice Descriptions (Collection)choiceDescriptionsCollection(blank)collection source, optional: second lines in the same order.
Recordsrecords(blank)records source: a record collection from the Flow (Get Records, Loop, Filter...). Shown as-is, no extra query. Outputs Selected Record(s).
Record Label FieldrecordLabelField(blank)records/query: field for the label. Default Name (query: the object name field). Relationship paths like Account.Name work for records.
Record Value FieldrecordValueField(blank)records/query, optional: field for the value. Default Id.
Record Description FieldrecordDescriptionField(blank)records/query, optional: field for the second line.
Record Image URL FieldrecordImageField(blank)records/query, optional: text/URL field with an image URL (https:// or same-org path).
Record Icon FieldrecordIconField(blank)records/query, optional: field holding an SLDS icon name per record.
Label FormatlabelFormat(blank)Optional template for records/query, e.g. {Name} ({Code__c}). Overrides Record Label Field. Plain text only.
Description FormatdescriptionFormat(blank)Optional template for the second line, e.g. {City__c} - {Capacity__c} seats.
Object API NameobjectApiName(blank)picklist/query: the object, e.g. Account or Room__c.
Picklist Field API NamefieldApiName(blank)picklist: the picklist or multi-select picklist field, e.g. Industry.
Record Type IdrecordTypeId(blank)picklist, optional: record type for the values. Blank uses the default record type.
Controlling Field ValuecontrollingValue(blank)picklist, optional: for a dependent picklist, show only the values valid for this controlling value.
Filter FieldfilterField(blank)query, optional: field to filter on (one relationship hop allowed, e.g. Account.Type).
Filter OperatorfilterOperatoreqeq, ne, in, nin, like, gt, gte, lt or lte. in/nin take comma-separated values.
Filter ValuefilterValue(blank)query: value for Filter Field. Sent as a variable, never as query text.
Filter LogicfilterLogicANDAND (default) or OR: how the two filters combine. Blank or missing stays AND, so existing flows are unchanged.
Filter Field 2filterField2(blank)query, optional: second filter, combined with the first using Filter Logic (default AND).
Filter Operator 2filterOperator2eqOperator for Filter Field 2.
Filter Value 2filterValue2(blank)Value for Filter Field 2.
Order By FieldorderBy(blank)query, optional: sort field. Default the label field.
Sort DirectionsortDirectionascasc or desc.
Maximum Record ChoicesmaxChoices200query: at most this many records (1-2000, default 200).
Icon (All Choices)iconName(blank)Optional SLDS icon for every choice without its own icon or image, e.g. standard:account.
Selection ModeselectionModesinglesingle (default) or multi.
Required MessagerequiredMessage(blank)Optional. Blank uses the translated default.
Minimum SelectionsminSelections0Multi only. 0 = no minimum.
Maximum SelectionsmaxSelections0Multi only. 0 = no maximum.
DisableddisabledfalseShow the choices read-only.
Default ValuedefaultValue(blank)Optional value (multi: comma- or semicolon-separated) selected when Value is blank. picklist: blank uses the field default unless Use Field Default is off.
Use Field DefaultuseFieldDefault(blank)picklist source: when Default Value and Value are blank, start on the field default value from Setup (default true). Off = start with nothing selected. Blank = true (set in code; no meta default, which Flow Builder re-applies).
Dropdown Placeholderplaceholder(blank)Dropdown layout: text shown before a choice is made.
Include --None--includeNonefalseDropdown layout, not required: add an empty option.
Layoutlayoutautoauto (default), tiles, cards, list, buttons, chips, dropdown, iconbuttons (Small buttons: icon or a few characters, full label as tooltip and accessible name; never picked by auto), avatar (photo or initials circles with size and shape; never picked by auto) or swatch (compact color or size chips; never picked by auto). Chips is a wrapping pill row for short multi select (explicit only; Auto does not pick it). Auto: images to cards; more than 12 single-select choices without images to dropdown; icons to tiles (wide) or list (phone); descriptions to cards (wide) or list (phone); up to 5 short labels to buttons (on a phone, only when they fit one row and have no icons, otherwise list); otherwise tiles (wide) or list (phone).
Densitydensitycomfortablecomfortable (default) or compact. Compact is 40px only on a wide component with a mouse; 600px or narrower, phones and touch screens keep 44px.
Columns (Desktop)columns0Tiles/cards: fixed number of columns on wide screens (1-6). 0 = fit automatically.
Columns (Phone)phoneColumns1Tiles/cards on narrow screens: 1 (default), 2, or scroll (a horizontal swipe row of image cards, 80% wide with the next card peeking in).
Image ShapeimageAspectlandscapelandscape (default), square or portrait.
Image FitimageFitfillfill (default: crop to fill the shape) or fit (show the whole image, centered, on a neutral background). A 12 rem maximum height keeps cards from growing too tall.
Avatar SizeavatarSizemediumAvatar layout only. small, medium (default) or large. About 24, 32 or 48 px on desktop; one step larger on phones. Other layouts ignore this.
Avatar ShapeavatarShapecircleAvatar layout only. circle (default), rounded (rounded square) or square. Applies to the photo, initials and the stack. Other layouts ignore this.
Stack Overlapping AvatarsavatarStackfalseAvatar layout only. Show avatars in an overlapping row. Extra choices become a +N bubble; on a phone, tapping +N opens the list of names.
Max Visible AvatarsavatarStackMax5Avatar layout, when stacked: how many avatars to show before +N (1-50). Default 5.
Accent ColoraccentColor(blank)Selected and focus color, e.g. #0B5CAB. Hex, rgb() or a color name. Lightened or darkened until it reaches 3:1 against the tile color (or the theme surface if no tile is set). Also tints the focus ring and the selected/highlighted row. Blank follows the org theme (and dark mode).
Background ColorbackgroundColor(blank)Optional color behind the whole component.
Tile ColortileColor(blank)Optional color of each choice. Blank follows the theme (and dark mode).
Text ColortextColor(blank)Optional. On choices and results: used as-is on the theme surface, or checked at 4.5:1 against a tile color if one is set. On the label and help: checked at 4.5:1 against the background if one is set; otherwise dark or white text is picked automatically.
Text Sizesizemediumsmall, medium (default), large or xlarge.
Corner Shapeshaperoundedrounded (default), square or pill.
Alignmentalignstartstart (default), center or end.
Color Map FieldcolorField(blank)Optional field whose value is looked up in the Color Map (records/query sources). Blank: the choice value (then the label) is used.
Color MapcolorMap(blank)Optional. One color per value, semicolon or new line between. Simple: Value:background/text (text optional), e.g. Gold:#FFF4CC/#5C4400; Silver:#EEEEEE. Mobile Data Table: [{'key':'Gold','value':'#FFF4CC;#5C4400'},{'key':'Silver','value':'#EEEEEE'}].
Color Map StylecolorCuestripestripe (default: colored bar on the edge), tint (light background; use for dark mode), fill (solid background; NC Buttons & Tiles and NC Picklist only), or dot (small colored dot).
Phone PickerphonePickernativenative (default: the 16px native select on touch and narrow widths), sheet (a bottom sheet on phones and narrow widths, for list and dropdown layouts) or auto (sheet when choices have descriptions, icons, colors or multi select; native otherwise).
Show SearchshowSearchoffoff (default), on, or auto (show when there are more than 10 choices in the list, tiles or cards layout, or inside the phone sheet). Filters the already loaded choices as the user types.
Search PlaceholdersearchPlaceholder(blank)Optional. Blank uses the translated default.
Sticky ContinuestickyContinueoffoff (default) or auto (dock the Continue button to the bottom on phones when it is shown).
Show Selected PillsshowSelectedPillsoffoff (default), on, or auto (show a pill for each selected choice above a multi-select list when there are more than 8 choices).
Empty MessageemptyMessage(blank)Optional text when no choices are available. Blank uses the translated default.
No Match MessagenoMatchMessage(blank)Optional text when a search has no matches. {0} is the typed text. Blank uses the translated default.
Choice DetailschoiceDetails(blank)text source, optional: comma-separated trailing detail text in the same order, e.g. €19,€49,€99.
Record Detail FieldrecordDetailField(blank)records/query, optional: field for the trailing detail text.
Detail FormatdetailFormat(blank)Optional template for the trailing detail, e.g. {Daily_Rate__c} / day.
Choice BadgeschoiceBadges(blank)text source, optional: comma-separated badges in the same order, e.g. ,Popular,.
Record Badge FieldrecordBadgeField(blank)records/query, optional: field for the badge text.
Icon MapiconMap(blank)Optional. One SLDS icon per value, semicolon or new line between, e.g. Email:utility:email; Chat:utility:chat. Unmatched values use Icon (All Choices). Unknown icons are skipped.
Show Select AllshowSelectAllfalseMulti select: show Select all and Clear on the counter line.
Record Group FieldrecordGroupField(blank)records/query, optional: field used to group choices under section headers.
Choice GroupschoiceGroups(blank)text source, optional: comma-separated group names in the same order as the choices, e.g. Lifts,Lifts,Loaders,Loaders.
Disable When Badge Is 0disableWhenBadgeZerofalseWhen on, a choice whose badge is 0 is greyed out and cannot be selected (for example, none available). Off by default.
Sort Groups A to ZsortGroupsAlphafalseWhen on, group section headers are sorted alphabetically. Off (default): they appear in the order the records first appear. Choices with no group go in a final Other group, always last.
Navigate After SelectionnavigateOnSelectnonenone, next, back, finish or pause. After a tap, click or Enter the Flow moves on, so you can hide the screen's footer buttons. Next and Finish check Required first; Next becomes Finish on the last screen.
Show Continue ButtonshowContinueButtonfalseShow a button that navigates (Navigate After Selection) instead of moving on at once. Always shown for multi select when navigation is on.
Continue Button LabelcontinueLabel(blank)Optional. Blank uses Next, Previous, Finish or Pause (translated).
Available ActionsavailableActions(blank)Set by Flow; do not map.

Outputs

OutputAPI nameTypeDirectionDescription
ValuevalueTextInput and outputSelected value; multi select comma-separated (semicolons for a picklist source, ready for a multi-select picklist field). Map the same variable in and out to keep the choice on Back.
Values (Collection)valuesText collectionOutputSelected values as a text collection.
Selected LabelselectedLabelTextOutputLabel(s) of the selection, comma-separated.
Selected RecordselectedRecordRecordOutputrecords/query: the first selected record.
Selected RecordsselectedRecordsRecord collectionOutputrecords/query: all selected records.
Selected CountselectedCountNumberOutputNumber of selected choices. 0 when nothing is picked; 1 for a single select with a value. Sent with Value.
Is ClickedisClickedBooleanOutputTrue once the user clicks, taps or picks a choice (or presses Continue) on this screen. Not set by a Default Value. Use it in a Decision after Next or in a screen condition (reactive).

Is Clicked is not set by a Default Value. It turns true only when the user picks or presses Continue.

Shared behavior

Layout and width, required messages, colors, navigation, data sources, translations, accessibility, and the setup panel work the same way on every component. See NC screen components.

To copy this component's settings to another screen, use Copy settings at the top of its setup panel. See Copy settings.