In the CMS during validation, I can attach errors to "ReadonlyField" instances and they will show up but apparently it doesn't work with "HeaderField" instances.
i.e. when attaching to a validator via
$validator->fieldError($field, $message);
It's a bit frustrating because, on the flip side, if I tried to overcome this by using the read-only field as an alternative, it loses the value of the read-only field after submission, so now I can have an error in the correct location above a grouping of fields, but suddenly the field's value is "(none)" -- that doesn't make any sense to me at all.
Just wondering if anyone had a quick solution/explanation of hand or if this is actually a bug.
- Pat