question

Upvotes
Accepted
154 12 17 30

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 5.0 MiB each and 10.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 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea