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

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

nivappwebnivappweb Posts: 5Questions: 3Answers: 0

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

Answers

  • allanallan Posts: 63,195Questions: 1Answers: 10,412 Site admin
    Answer ✓

    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 field users.site. The two are linked, but not the same.

    Allan

  • nivappwebnivappweb Posts: 5Questions: 3Answers: 0

    Thanks, Allan!

This discussion has been closed.