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

LayoutAPI valueWhat the user seesExample
AutoautoThe 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.
DropdowndropdownA select list. Phones and narrow columns get the native select.Account Industry, with --None-- when the field is not required.
ListlistRadio rows (single) or checkbox rows (multi), with an optional second line and color cue.Accounts, maximum 3, with Rating as a stripe.
ButtonsbuttonsLarge 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.
ChipschipsA wrapping pill row for short multi-select.Tags.
Small buttonsiconbuttonsAn icon or a few characters, with the full label as the tooltip and accessible name.Compact icon choices.
SegmentedsegmentedOne pill bar for 2 to 5 options.Pickup, Delivery, Ship. Or sizes XS to XL.
RatingratingStars (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.

NC Picklist, Segmented layout on desktop: a size row from XS to XL, and a two-option Yes and No bar.
NC Picklist, Segmented layout on desktop: a size row from XS to XL, and a two-option Yes and No bar.
Segmented with six long labels falls back to a wrapping button row.
Segmented with six long labels falls back to a wrapping button row.
NC Picklist, Rating layout on desktop: stars for satisfaction, and a number bar for effort.
NC Picklist, Rating layout on desktop: stars for satisfaction, and a number bar for effort.
Buttons layout with icons on a wide page. Email is selected.
Buttons layout with icons on a wide page. Email is selected.
Chips layout, multi-select with a maximum of 3.
Chips layout, multi-select with a maximum of 3.
Small buttons layout with icons.
Small buttons layout with icons.

How Auto picks a layout:

  1. Multi-select becomes a list.
  2. More than 5 options become a dropdown, on every device.
  3. 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.
  4. On a wide screen: up to 5 short labels become buttons. Otherwise a list.

A short label has 18 characters or fewer.

Auto on a wide screen: five short sizes become buttons, and a long Industry list becomes a dropdown.
Auto on a wide screen: five short sizes become buttons, and a long Industry list becomes a dropdown.

A Style fills only the settings you leave blank: Radio list, Checkbox list (multi-select), or Compact dropdown.

Add it to a screen

  1. Add NC Picklist to a Flow screen.
  2. 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.
  3. Choose Layout (or Auto), Selection Mode, and Required. For Rating, set Rating Style. For multi-select, set the minimum and maximum.
  4. Map Value in and out of the same variable. Debug the flow, and press Next with the field empty if it is required.

Validation

A required dropdown after Next with its message, and a list with compact density and Color Map dots.
A required dropdown after Next with its message, and a list with compact density and Color Map dots.
A multi-select list with Rating stripes at its maximum of 3. The other rows cannot be added.
A multi-select list with Rating stripes at its maximum of 3. The other rows cannot be added.

Limits

Properties

PropertyAPI nameDefaultDescription
StylestylePreset(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.
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 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 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), 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 StyleratingStylestarsRating layout only. stars (default) or numbers (a 1-N bar). Other layouts ignore this.
Densitydensitycomfortablecomfortable (default) or compact. Compact is 40px only on a wide component with a mouse; 600px or narrower, phones and touch screens keep 44px.
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 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 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).

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.