dataTable.editor - select tag - How can I show the selected option?
dataTable.editor - select tag - How can I show the selected option?

Hi,
I am using Datatable.editor as follows:
https://pastebin.com/fNtm1Xyj
And the Ajax data looks like:
https://pastebin.com/whidadU9
My problem is once the user trying to update the side's field, the selected option is not marked.
How can I mark the selected option?
Thanks for your time!
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
The pastebins have been removed, so I'm not sure what was in them, but 99% of the time the issue describe is caused by trying to set the field's value from the label.
Consider this example - the DataTable will show
sites.name
(the label) but the Editor will edit the fieldusers.site
. The two are linked, but not the same.Allan
Thanks, Allan!