Take a look at the HTML source, you will see a class name on empty fields that you can use to hide them.
Hi Roland
I did think that you might have pulled something out of your hat to suppress the display of the empty fields.
I have now supressed the fields using the following. This is just part of the code as I have many fields, but it gives an idea of how it can be done. However, it’s possible that there might be an easier way.
$id= $_GET[‘pdb’];
$data = Participants_Db::get_participant($id);
$name = $data[‘name’];
$price = $data[‘price’];
$model = $data[‘model’];
if (empty($name)) {echo ‘<style>dt.name{display:none}</style>’;}
if (empty($price)) {echo ‘<style>dt.price{display:none}</style>’;}
if (empty($model)) {echo ‘<style>dt.model{display:none}</style>’;}
Many Thanks
Blast!!!
I’ve just discovered
.pdb-single .blank-field {
display: none;
}
Worked great….