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.
Layouts
| Layout | API value | What the user sees | Example |
|---|---|---|---|
| Auto | auto | The component picks a layout. See the rules below. | Leave Auto and let the screen adapt to desktop and phone. |
| Tiles | tiles | Icon or short-label tiles in a grid. | Contact method: Email, Phone, SMS, Visit, each with an icon. |
| Cards | cards | Image or description cards in a grid. | Rentables with a picture, name, and short description. |
| List | list | One 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. |
| Buttons | buttons | Large 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". |
| Chips | chips | A wrapping pill row for short multi-select. | Tags: Urgent, After hours, VIP, with a maximum of 3. |
| Dropdown | dropdown | A select list. Phones and narrow columns get the native select. | A long list of industries. |
| Small buttons | iconbuttons | An icon or a few characters. The full label is the tooltip and the accessible name. | A compact row of short actions. |
| Avatars | avatar | Photo or initials faces. | Assign a User from a Get Records on User. |
| Swatches | swatch | Compact 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.
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:
- More than 12 single-select choices with no images become a dropdown.
- 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.
- 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.
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.
- 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.
- 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.
- Typed choices can use Choice Image URLs instead. Only
https://addresses and same-org paths such as/resource/...are used. Other addresses are dropped. - 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.
- 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.
- Avatar Shape: circle (default), rounded, or square.
- 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.
Add it to a screen
- Open the flow in Flow Builder and add or open a Screen element.
- Add NC Buttons & Tiles. The setup panel opens.
- 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. - 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.
- Choose Layout (or leave Auto), Selection Mode, and Required. Optionally set a Color Map and Navigate After Selection.
- 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.
- Debug the flow on desktop and at a narrow width, about 390 px, before you activate it.
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
- Required blocks Next until a choice is picked. Required Message is optional. Blank uses the translated default.
- For multi-select, Minimum Selections (default 0) and Maximum Selections (0 means no maximum) apply. The user cannot add more than the maximum. If the incoming Value already has more, Next is blocked until the user removes enough.
- With grouped choices, a choice with an empty group value goes in a final group named "Other". Other is always last, also when Sort Groups A to Z is on.
- An empty list shows Empty Message, or the translated default. A search with no match shows No Match Message.
Phone and desktop
- Auto switches layouts as described above. It uses the phone rules on a phone or in a browser window under 600 px wide. Icon tiles become list rows on a phone. Image choices stay cards. Up to 5 short labels can stay one button row when they fit.
- Phone Picker (default
native): the native select on touch and narrow widths,sheetfor a bottom sheet with list and dropdown, orautofor a sheet when choices have descriptions, icons, colors, or multi-select. - Show Search (default off): on, off, or auto. Auto shows a search box when there are more than 10 choices in the list, tiles, or cards layout, or inside the phone sheet. It filters the choices already loaded.
- Columns (Desktop) (default 0, fit automatically) and Columns (Phone) (default 1) apply to tile and card grids only.
Limits
- Auto never picks Avatars, Swatches, Chips, or Small buttons.
- Get Records must store every photo, badge, group, and color field the component uses.
- Guest users, and users who cannot see a User record, often see initials instead of photos.
- Map Value in and out of the same variable so Back keeps a changed pick.
Properties
| Property | API name | Default | Description |
|---|---|---|---|
| Style | stylePreset | (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. |
| Label | fieldLabel | (blank) | Question or field label shown above the component. |
| Choices | choiceLabels | (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). |
| Required | required | false | Block Next until a choice is selected. |
| Help Text | helpText | (blank) | Optional hint shown under the label. |
| Data Source | source | auto | auto (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 Values | choiceValues | (blank) | text source, optional: comma-separated values in the same order. Blank entries use the label. |
| Choice Descriptions | choiceDescriptions | (blank) | text source, optional: comma-separated second lines in the same order. |
| Choice Icons | choiceIcons | (blank) | text source, optional: comma-separated SLDS icon names, e.g. utility:home,utility:company. |
| Choice Image URLs | choiceImages | (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. |
| Records | records | (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 Field | recordLabelField | (blank) | records/query: field for the label. Default Name (query: the object name field). Relationship paths like Account.Name work for records. |
| Record Value Field | recordValueField | (blank) | records/query, optional: field for the value. Default Id. |
| Record Description Field | recordDescriptionField | (blank) | records/query, optional: field for the second line. |
| Record Image URL Field | recordImageField | (blank) | records/query, optional: text/URL field with an image URL (https:// or same-org path). |
| Record Icon Field | recordIconField | (blank) | records/query, optional: field holding an SLDS icon name per record. |
| Label Format | labelFormat | (blank) | Optional template for records/query, e.g. {Name} ({Code__c}). Overrides Record Label Field. Plain text only. |
| Description Format | descriptionFormat | (blank) | Optional template for the second line, e.g. {City__c} - {Capacity__c} seats. |
| Object API Name | objectApiName | (blank) | picklist/query: the object, e.g. Account or Room__c. |
| Picklist Field API Name | fieldApiName | (blank) | picklist: the picklist or multi-select picklist field, e.g. Industry. |
| Record Type Id | recordTypeId | (blank) | picklist, optional: record type for the values. Blank uses the default record type. |
| Controlling Field Value | controllingValue | (blank) | picklist, optional: for a dependent picklist, show only the values valid for this controlling value. |
| Filter Field | filterField | (blank) | query, optional: field to filter on (one relationship hop allowed, e.g. Account.Type). |
| Filter Operator | filterOperator | eq | eq, ne, in, nin, like, gt, gte, lt or lte. in/nin take comma-separated values. |
| Filter Value | filterValue | (blank) | query: value for Filter Field. Sent as a variable, never as query text. |
| Filter Logic | filterLogic | AND | AND (default) or OR: how the two filters combine. Blank or missing stays AND, so existing flows are unchanged. |
| Filter Field 2 | filterField2 | (blank) | query, optional: second filter, combined with the first using Filter Logic (default AND). |
| Filter Operator 2 | filterOperator2 | eq | Operator for Filter Field 2. |
| Filter Value 2 | filterValue2 | (blank) | Value for Filter Field 2. |
| Order By Field | orderBy | (blank) | query, optional: sort field. Default the label field. |
| Sort Direction | sortDirection | asc | asc or desc. |
| Maximum Record Choices | maxChoices | 200 | query: 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 Mode | selectionMode | single | single (default) or multi. |
| Required Message | requiredMessage | (blank) | Optional. Blank uses the translated default. |
| Minimum Selections | minSelections | 0 | Multi only. 0 = no minimum. |
| Maximum Selections | maxSelections | 0 | Multi only. 0 = no maximum. |
| Disabled | disabled | false | Show the choices read-only. |
| Default Value | defaultValue | (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 Default | useFieldDefault | (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 Placeholder | placeholder | (blank) | Dropdown layout: text shown before a choice is made. |
| Include --None-- | includeNone | false | Dropdown layout, not required: add an empty option. |
| Layout | layout | auto | auto (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). |
| Density | density | comfortable | comfortable (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) | columns | 0 | Tiles/cards: fixed number of columns on wide screens (1-6). 0 = fit automatically. |
| Columns (Phone) | phoneColumns | 1 | Tiles/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 Shape | imageAspect | landscape | landscape (default), square or portrait. |
| Image Fit | imageFit | fill | fill (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 Size | avatarSize | medium | Avatar 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 Shape | avatarShape | circle | Avatar layout only. circle (default), rounded (rounded square) or square. Applies to the photo, initials and the stack. Other layouts ignore this. |
| Stack Overlapping Avatars | avatarStack | false | Avatar 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 Avatars | avatarStackMax | 5 | Avatar layout, when stacked: how many avatars to show before +N (1-50). Default 5. |
| Accent Color | accentColor | (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 Color | backgroundColor | (blank) | Optional color behind the whole component. |
| Tile Color | tileColor | (blank) | Optional color of each choice. Blank follows the theme (and dark mode). |
| Text Color | textColor | (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 Size | size | medium | small, medium (default), large or xlarge. |
| Corner Shape | shape | rounded | rounded (default), square or pill. |
| Alignment | align | start | start (default), center or end. |
| Color Map Field | colorField | (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 Map | colorMap | (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 Style | colorCue | stripe | stripe (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 Picker | phonePicker | native | native (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 Search | showSearch | off | off (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 Placeholder | searchPlaceholder | (blank) | Optional. Blank uses the translated default. |
| Sticky Continue | stickyContinue | off | off (default) or auto (dock the Continue button to the bottom on phones when it is shown). |
| Show Selected Pills | showSelectedPills | off | off (default), on, or auto (show a pill for each selected choice above a multi-select list when there are more than 8 choices). |
| Empty Message | emptyMessage | (blank) | Optional text when no choices are available. Blank uses the translated default. |
| No Match Message | noMatchMessage | (blank) | Optional text when a search has no matches. {0} is the typed text. Blank uses the translated default. |
| Choice Details | choiceDetails | (blank) | text source, optional: comma-separated trailing detail text in the same order, e.g. €19,€49,€99. |
| Record Detail Field | recordDetailField | (blank) | records/query, optional: field for the trailing detail text. |
| Detail Format | detailFormat | (blank) | Optional template for the trailing detail, e.g. {Daily_Rate__c} / day. |
| Choice Badges | choiceBadges | (blank) | text source, optional: comma-separated badges in the same order, e.g. ,Popular,. |
| Record Badge Field | recordBadgeField | (blank) | records/query, optional: field for the badge text. |
| Icon Map | iconMap | (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 All | showSelectAll | false | Multi select: show Select all and Clear on the counter line. |
| Record Group Field | recordGroupField | (blank) | records/query, optional: field used to group choices under section headers. |
| Choice Groups | choiceGroups | (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 0 | disableWhenBadgeZero | false | When 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 Z | sortGroupsAlpha | false | When 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 Selection | navigateOnSelect | none | none, 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 Button | showContinueButton | false | Show a button that navigates (Navigate After Selection) instead of moving on at once. Always shown for multi select when navigation is on. |
| Continue Button Label | continueLabel | (blank) | Optional. Blank uses Next, Previous, Finish or Pause (translated). |
| Available Actions | availableActions | (blank) | Set by Flow; do not map. |
Outputs
| Output | API name | Type | Direction | Description |
|---|---|---|---|---|
| Value | value | Text | Input and output | Selected 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) | values | Text collection | Output | Selected values as a text collection. |
| Selected Label | selectedLabel | Text | Output | Label(s) of the selection, comma-separated. |
| Selected Record | selectedRecord | Record | Output | records/query: the first selected record. |
| Selected Records | selectedRecords | Record collection | Output | records/query: all selected records. |
| Selected Count | selectedCount | Number | Output | Number of selected choices. 0 when nothing is picked; 1 for a single select with a value. Sent with Value. |
| Is Clicked | isClicked | Boolean | Output | True 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.