I have created a set of custom fields and I want to hide some data which have specific value, I have tried using
$smarty = CRM_Core_Smarty::singleton();
$smarty->assign('records', []);
to try and hide all the data but they are still showing.. can anyone help me? thanks a lot