Page::getFieldsByType($type[,$type,...])
Version 4
Get all fields of given type
Version 4
Get all fields of given type
Get all page fields that are of a certain type.
Array Array of Field
Show all phone and email -fields:
foreach ( $Order->getFieldsByType('phone','email') as $Field ){
$txt .= "{$Field->getTitle()}: {$Field->getValue()}</p>";
}