Is it possible to select a value in a "Select" component using the label?

Hello,

I have a select component inside a form which needs to automatically select one of the values based on what is in a table. The problem is that the table has what is the "label" of the value and not the value itself. Is it possible to select this only using the label?

Thanks!

I don't believe this can be done. I would, if possible, get that "value" into the table and Hide the column and then set the Default value of the select component to
table.selectedRow.data.(yourcolumnname)

1 Like

Agreed! Otherwise you'd have to write some JS logic to map the value back to the corresponding id: