Class SelectPrompt
Display
Optionalmessage
message?: string
An optional explanatory message to display at the top of the prompt
Items
add Item
Add an information text label to the prompt. Returns true if item successfully added. If item cannot be added, check action log of details of the error, typically it is because of issues like a duplicate
idvalue, or missing parameters.Parameters
- id: string
Identifier. Should be unique to the items in the prompt.
- title: string
User-facing description.
Optionalsubtitle: stringOptional additional explanatory text.
OptionalsymbolName: stringOptional SF Symbol name to display as an icon.
Returns boolean
- id: string
Other
constructor
Create new instance.
Returns SelectPrompt
show
Displays the prompt. Returns
trueif the user selected one of the item,falseif cancelled without making a selection.Returns boolean
Staticcreate
Create new instance.
Returns SelectPrompt

Select prompt allow the creation and display of custom dialogs which prompt the user to select from a list of options. The prompt is searchable to filter the list, and keyboard navigable. This is a great option if you need to make a selection from a long list of items.
Example