JSON object in the value field of Options component

Before upgrading components, we were able to store JSON objects in the value of a dropdown component. We are using an API to populate the data so we are using the Mapped options.

Is it no longer possible to use a JSON object in the value field? Are only strings allowed? Would you recommend accessing the object fields from the selected item as described here:


Hey @howie! Happy to help here :blush:

Would you mind sharing what your current data set looks like? A screenshot of the data in the left panel (expanded out to show the nested data) would be great!

If your data looks like I suspect it does, I believe I just got it to work with a similar setup!

In the Value field, I used {{JSON.stringify(item)}} to make sure every object in my data array got represented fully as a dropdown value. Would something like this work for you?