[SOLVED] Selecting database base on checkbox

i have this type of department

how to make the selection on this only showing the active department?

1 Like

@anditsung

Use this script!

cur_frm.set_query('bagian', function(doc){
  return {
    filters: {"active": 1}
  }
});
1 Like

thanks. its working