How to put value from the other field to make condition to search from other table
How to put value from the other field to make condition to search from other table
stancaballero
Posts: 29Questions: 9Answers: 0
Field::inst( 'tbl_con.id' ),
Field::inst( 'aud' )
->validator( Validate::required() )
->options( Options::inst()
->table( 'tbl_ram_exit_aud' )
->value( 'aud' )
->label( 'aud' )
->order( 'aud asc' )
->where('regionname', $variable ) How to put tbl_con.id value to $variable?
Answers
Please help me guys
Hi,
That sounds like the list of options that will be available will change depending on the row being edited. Is that correct in this case?
If so, have a look at this blog post which looks at one approach for how to solve this kind of thing via the
dependent()
method.Regards,
Allan
Thank you allan