There are 2 main field storages.
$this->fields
- is the array of the fields where field ID is the key of an array
If you want to render individual field you can use code like this.
<?php echo $this->fields[12]->label.': '.$this->fields[12]->result; ?>
$this->sorted_fields
- multilevel array where first element is the ID of the fields group (0 for ungrouped) and second level fields of fields where array key is the field key.
If you want to list group of the fields you can use foreach
for $this->sorted_fields[10]
variable where 10
is the ID of the fields group. Read more about field’s groups.