Set the dropdown options for a Select from a row in editor

Set the dropdown options for a Select from a row in editor

bfarkasbfarkas Posts: 181Questions: 48Answers: 0

Trying to think through a method on identifying a specific row in the editor table, it will have a unique value in a specific column, and then take the value from each of the first three columns of that row and put them in an array an set them as the option choices for a dropdown field in the form, any good ideas?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,715Questions: 1Answers: 10,108 Site admin
    Answer ✓

    Sure - use the field().update() method to update the list of options for a field. You could update it on the initEdit event - getting the data from the selected DataTable row using row().data() (which you would base your options list from) - assuming I've understood your intention correctly.

    Allan

This discussion has been closed.