NC Picklist
Not yet released: this component will ship in an upcoming Native Rent package version.
NC Picklist is a form-style choice field. It can be a dropdown, a radio or checkbox list, buttons, chips, a segmented pill bar, or a rating. It uses the same data sources as NC Buttons & Tiles, including a picklist field with record types and controlling values.
Use it for fields such as Industry, Reason, a yes or no pair, a 1 to 5 rating, or a multi-select list with a maximum.
Layouts
| Layout | API value | What the user sees | Example |
|---|---|---|---|
| Auto | auto | The component picks a layout. See the rules below. | Up to 5 short options as buttons, a long picklist as a dropdown, multi-select as a list. |
| Dropdown | dropdown | A select list. Phones and narrow columns get the native select. | Account Industry, with --None-- when the field is not required. |
| List | list | Radio rows (single) or checkbox rows (multi), with an optional second line and color cue. | Accounts, maximum 3, with Rating as a stripe. |
| Buttons | buttons | Large block buttons with an icon and a label, the same as the NC Buttons & Tiles Buttons layout. Each button is at least 44 px tall. | Contact method: Email, Phone, SMS. Also the fallback when a Segmented bar does not fit. |
| Chips | chips | A wrapping pill row for short multi-select. | Tags. |
| Small buttons | iconbuttons | An icon or a few characters, with the full label as the tooltip and accessible name. | Compact icon choices. |
| Segmented | segmented | One pill bar for 2 to 5 options. | Pickup, Delivery, Ship. Or sizes XS to XL. |
| Rating | rating | Stars (default) or a 1 to N number bar, in option order. | Satisfaction 1 to 5 as stars. Effort Low, Medium, High as a number bar. |
Auto never picks Chips, Small buttons, Segmented, or Rating. Set Layout to them yourself.
- Segmented falls back to a wrapping button row when there are fewer than 2 or more than 5 options, or when the labels do not fit on one row. If the bar is shown and turns out to be cut off, it switches to wrapping buttons at that width or narrower. It checks again when the width changes, and tries the bar again when the component gets wider.
- Rating Style (
starsornumbers) appears in the setup panel only for the Rating layout. The stored value is the option value at that position. Arrow keys move the rating. Enter or Space picks. - With Layout set to
dropdownand multi-select, the component shows a list. With Layout set tochipsand single-select, it shows a list.
How Auto picks a layout:
- Multi-select becomes a list.
- More than 5 options become a dropdown, on every device.
- On a phone, or when the component is under 480 px wide: up to 5 short labels with no descriptions become buttons, if they fit on one row. Otherwise a list.
- On a wide screen: up to 5 short labels become buttons. Otherwise a list.
A short label has 18 characters or fewer.
A Style fills only the settings you leave blank: Radio list, Checkbox list (multi-select), or Compact dropdown.
Add it to a screen
- Add NC Picklist to a Flow screen.
- Set Label and the data source: typed choices, a picklist field, records, or a query. For a dependent picklist, set Object, Picklist Field API Name, Controlling Field Value, and optionally Record Type Id.
- Choose Layout (or Auto), Selection Mode, and Required. For Rating, set Rating Style. For multi-select, set the minimum and maximum.
- Map Value in and out of the same variable. Debug the flow, and press Next with the field empty if it is required.
Validation
- Required, Required Message, Minimum Selections, and Maximum Selections work as on NC Buttons & Tiles. More picks than the maximum block Next.
- Disable When Badge Is 0 and Sort Groups A to Z work as on NC Buttons & Tiles. Group headers follow the order the records first appear, or A to Z when the checkbox is on. Choices with an empty group value go in a final "Other" group, which is always last.
Limits
- Auto never picks Segmented, Rating, Chips, or Small buttons.
- Segmented falls back to a wrapping button row above 5 options or when labels do not fit.
- Get Records must store badge, group, and color fields.
- Map Value in and out of the same variable so Back keeps a changed pick.
Properties
| Property | API name | Default | Description |
|---|---|---|---|
| Style | stylePreset | (blank) | radio (Radio list), checkbox (Checkbox list: multi select) or compact (Compact dropdown). 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 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 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), dropdown, list, buttons, chips, iconbuttons (Small buttons: icon or a few characters, full label as tooltip and accessible name; never picked by auto), segmented (a single-row pill bar for 2-5 options; above 5 or if the labels overflow, falls back to Buttons wrap; never picked by auto) or rating (stars or a 1-N bar mapped to the options in order; never picked by auto). Chips is a wrapping pill row for short multi select (explicit only; Auto does not pick it). Auto: up to 5 short options to buttons (on a phone or narrow screen, only when they fit one row, otherwise list); more to dropdown; multi select or longer labels to list. |
| Rating Style | ratingStyle | stars | Rating layout only. stars (default) or numbers (a 1-N bar). Other layouts ignore this. |
| 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. |
| 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 choice 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). |
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.