select - options build

select - options build

Andreas S.Andreas S. Posts: 207Questions: 73Answers: 4

I have in an editor form a dropdown field, which depending on what is entered in the other fields are different options to choose from. My first idea would be to write a function that gives me the possibilities.

{
    label: frmInfo.a_owner,
    name: 'a_owner',
    data: 'owner',
    type: 'select',
    options: function( data ) {
        console.log( 'ss');
}
}

However, that does not work. Is there a way to insert the contents of the dropdown box using a function there?

Andreas

Answers

This discussion has been closed.