dashjoin / platform

Dashjoin Is an Open Source & Cloud Native Low Code Development and Integration Platform that helps teams deliver applications faster 🚀 Uses a data-driven approach inspired by Linked Data to make use of your existing assets
https://dashjoin.com
GNU Affero General Public License v3.0
89 stars 7 forks source link

Input Fields - Select with complex objects shows Options, but can't choose anything #372

Closed pgrill79 closed 2 weeks ago

pgrill79 commented 2 weeks ago

i have a input field which gets the following options via expression: [ { "name": "Sheep", "speciesid": 2, "animals": 16 }, { "name": "Goat", "speciesid": 3, "animals": 71 } ]

The input field shows the options, but i cant select it - the selection always is empty:

Options are shown: image

but after selecting the field remains empty: image

If the selection is an array: [ "Sheep", "Goat" ]

it works

pgrill79 commented 2 weeks ago

I have just figured out my issue - there needs to be a field called value (in our case the id) - then it works:

[
  {
    "name": "Sheep",
    "value": 2,
    "animals": 10
  },
  {
    "name": "Goat",
    "value": 3,
    "animals": 12
  }
]

So you can close the issue, but maybe a point for documentation (if not there already somewhere ;))