How to Use Multi select
Setting Values and Labels
Set the values that will be sent to the server in [Values], and set user-friendly display names in [Labels].
If [Labels] is empty, the values from [Values] will be displayed.
Set these using an array format.
e.g., [1,2,3]
Setting Default Values
Set initial values in [Default values]. You can set either a fixed value or a dynamic value.
Applying Dynamic Values to Multi select
- Click [Create] next to [Dataflows].
- Select [Onboarding DB].
- Write the following query in [SQL]:
SELECT * FROM users LIMIT 20;
- Place a [Multi select].
- Select the placed [Multi select] and open the [Inspect].
- Enter the following script in [Values]:
{{ dataflow1.data.map((d) => d.id) }}
- Enter the following script in [Labels]:
{{ dataflow1.data.map((d) => d.email) }}
- Confirm that the values inside the [Multis elect] are displayed as email addresses.