Using this code
if ($fields["custom_111_79"] == 0) $errors["custom_111_79"] = "Please enter number of physio sessions";
The evaluation is done correctly, but the error message does not appear against the custom field, but instead as a general error message top right of the screen.
This is in civi_case.
Is this supposed to work? Is there another way of making custom fields work like normal fields?