Hi there,
i would like to hide a extra field if empty but also hide the li element as well,
please if anyone can assist i would appreciate it,
thanks, my extra field code is as follows:
i would like to hide a extra field if empty but also hide the li element as well,
please if anyone can assist i would appreciate it,
thanks, my extra field code is as follows:
12 years 9 months ago #124359
You can try to make a check for each of your extra fields this:
<?php if (isset($this->item->extraFields->contact->value)): ?>
<li><b><?php echo $this->item->extraFields->contact->name; ?></b>
<?php echo $this->item->extraFields->contact->value ;?></li>
<?php endif; ?>