@Dav1d
Easy peasy..
You get the Org, get the entires, get the entry answers, gather all in array using ['name' => 'data']
format, then just display data by the name like so:
<?php
$values = array();
$org = $ticket->getOwner()->getOrganization();
$entries = $org->getDynamicData();
foreach ($entries as $entry) {
foreach ($entry->getAnswers() as $a)
$values[$a->field->name] = $a->display();
}
?>
<tr>
<th><?php echo __('Organization Address'); ?></th>
<td><?php echo $values['address']; ?></td>
</tr>
Note:
The "name" is typically the variable name for the field under Manage > Forms
.
Cheers.