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

stancaballerostancaballero Posts: 29Questions: 9Answers: 0
edited October 2022 in Editor

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

  • stancaballerostancaballero Posts: 29Questions: 9Answers: 0

    Please help me guys :)

  • allanallan Posts: 63,236Questions: 1Answers: 10,418 Site admin

    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

  • stancaballerostancaballero Posts: 29Questions: 9Answers: 0

    Thank you allan

Sign In or Register to comment.