Goal:
Hide all empty fields on the view page except the "photo" field.
View Record Settings:
Hide empty fields - checked
JavaScript OnLoad event:
pageObj.showField("photo");
photo custom view:
if (empty($data["photo"])) {
$value ="<img src='images/no_pic.png'>";
}
else {
$value ="<img src='". $data["thumbpic"] ."'>";
}
doesn't show the photo field....
If I uncheck the "hide empty fields" - the custom view works, but also displays all the other empty fields.
How can I get this to work without making custom views on all the fields on the page?