question

Upvotes
Accepted
154 15 18 31

How to map combo-box values?

I’ve populated the combo-box element using data queried from my back end system, but now want to map combo-box values back to their original data items. How can that be done?

workspacesdk
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Upvotes
Accepted
171 1 0 1

@Catherine Wong

Data elements always return string values. To get the original data item back you need to either use a Map or query the data array using find().

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.