I am looking for a solution to hide empty fields on the Detail Preview screen. I found the below solution to hide empty items on the view screen.
(
if (!$values["EPAHighway"])
$xt->assign("EPAHighway_fieldblock",false);
)
My problem is there is not a events page for the preview, just the list page.
Any directional help would be great! Thank you.