Today I had to output notes in a form at the frontend.
This little code snippets show you how it can be done via the API:
1) One language site:
$notesofmyfield = $page->fields->get("myfield")->notes;
echo $notesofmyfield;
2) On a multilanguage site
if ($user->language->name != 'default') {
$notes = "notes{$user->language}";
} else {
$notes = 'notes';
}
$notesofmyfield = $page->fields->get("myfield")->$notes;
echo $notesofmyfield;
Happy coding!!