hi! ,i have this field
$fbc = new CRM_Contacts_RBO_Company('From Branch Name');
$fbc->set_crits_callback(array('Inventory_TransactionCommon', 'branches_crits'))->set_visible();
$fields[] = $fbc;
and i made Qffield:
public function QFfield_from_branch_name(&$form, $field, $label, $mode, $default){
if($mode == 'add' || $mode == 'edit'){
var_dump($mode);
.......
}
}
i tried to debug it but the qffield function was not being called, when i tried to put out set_crits_callback it started working.
so how can i make a qffield if my field is set to crits_callback?
can anyone please help me thanks! 🙂