Skip to content

How to get the label of selected option #3964

Answered by phxgbl
phxgbl asked this question in Q&A
Discussion options

You must be logged in to vote

Solution I found
Either use "joinValues": false or
use autofill
code sample given below:

` {
type: 'select',
name: 'xxxx',
"autoFill": {
"select_label": "${label}",
},
},
{
"type": "alert",
"title": "Information",
"body": " ${select_label}",
"level": "info",
"className": "mb-3",
}

`

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by phxgbl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant