select - options build
select - options build
Andreas S.
Posts: 208Questions: 74Answers: 4
in Editor
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
This discussion has been closed.
Answers
Hi @Andreas S. ,
The best there is to use
dependent()
, see example here.Cheers,
Colin