Value in select within Editor
Value in select within Editor

Row in table belongs to a category. When I open Editor, where I've set select field with categories, there is set wrong value, first of my categories list.
...
{
label: 'Type',
name: 'type',
type: 'select',
options: [
{ label: 'Album', value: 'album'},
{ label: 'Compilation', value: 'compilation'},
...
]
}
...
I.e. I click on row with 'Compilation', in select is 'Album', not 'Compilation'. What should I do to get actual value?
This discussion has been closed.
Answers
Hi,
Could you show me your full DataTables and Editor initialisation please? Also can you show me the data you are loading into the table?
Thanks,
Alla
Code:
Data:
I don't know why, but it works fine now... Something has happens on backend, probably.
Interesting that it is working. I wouldn't expect it to from the above. You have in the data:
But in the options list there is no
Популярное
value. The values available are:"Популярное" is in the labels, but not the values and the matching is based on the values! So depending on what you have in the database you'd either need to change the values to match the English values, or change the
value
attributes to match your Kurdish strings.Allan