Skip to content

User Selection

Description

ItemContent
CategoryControl Class
Storage TypeTableAccountSimple,Array<TableAccountSimple>
SortableYes
FilterableYes
Supported Filter TypesContains, Does Not Contain, Equal, Not Equal, Empty, Not Empty, In List, Not In List

Settings

SettingDescription
Allow emptySet whether the field is required
Multiple selectionWhen enabled, the user selection will support multiple selection. Enabling multiple selection will change the field's storage type
Placeholder in form when not filledText information displayed in the input box when no information is entered in the field
Use current user as default valueWhen enabled, the current operating user will be used as the default value
Data sourceCan set the data source for option values
Options: Application MembersTeam Members
Selector styleCan set the style of the selector when displaying options, only displayed when the data source is Team Members
Options: ListDepartment Tree and Member List
Select selection rangeWhen the data source is Application Members, after enabling, you can limit the range of selected user members through Application Roles
Display styleCan set the display style of field content
Options: Avatar and NameAvatarNamePlain Text
Use automation to set candidate listSupport using automation to filter the set option values
Automation input parametersParameters that can be passed when calling automation to calculate candidate values

Note

Because single selection and multiple selection have different storage types, enabling/disabling multiple selection may cause data loss, so please operate with caution

Database Storage Format

Field TypeDescription
jsonbStores JSON format data, JSON data structure is shown below

In the data table, user selection field data is stored in JSON format. If it is multiple selection, it is stored as a JSON array. The JSON structure is as follows:

ts
interface TableAccountSimple {
  id: string; //ID
  name: string; //Name
  avatar: string; //Avatar
}

Use Automation to Set Candidate List (Application Members)

Use Automation to Set Candidate List (Team Members)