Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82236

Combobox dependents

$
0
0

Hello,
I am trying a functionality that I do not know if it is possible in Datatable Editor.
I have two fields that are edited with combobox: titulo_id and capitulo_id of the tb_tutorial table.
The editor is a template: '#customForm'

The data of the list that appears in the combobox:
Field::inst( 'tb_tutorial.titulo_id' )
->options( Options::inst()
->table( 'tb_palabra' )
->value( 'id' )
->label( 'palabra' )
),
Field::inst( 'tb_palabra.palabra' ),

Field::inst( 'tb_tutorial.capitulo_id' )
->options( Options::inst()
    ->table( 'tb_capitulo' )
    ->value( 'id' )
    ->label( 'capitulo' )
),
Field::inst( 'tb_capitulo.capitulo' ),

->leftJoin( 'tb_palabra', 'tb_palabra.id', '=', 'tb_tutorial.titulo_id' )
->leftJoin( 'tb_capitulo', 'tb_capitulo.id', '=', 'tb_tutorial.capitulo_id' )

THE QUESTION: Is it possible to make the combobox list for 'tb_tutorial.capitulo_id' filter based on the id of the previous combobox: 'tb_tutorial.titulo_id'.
Thank you


Viewing all articles
Browse latest Browse all 82236

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>