I would like to attach an error to a formItem. In spark, it appears that the standard way it is rendering on error on validation of a textInput, is bordering the textInput with red, placing a yellow alert icon next to the textInput and placing the error message in the formItem aligned to the right.
How does one do this manually for a custom formItem invalidation so that I can conform to error display?
Setting errorString on a FormItem will cause the error tooltip to appear when you hover over the FormItem.
<mx:FormItem label="Pick some numbers!" x="10" y="10" errorString="Error!">
<mx:CheckBox label="One"/>
<mx:CheckBox label="Two"/>
<mx:CheckBox label="Three"/>
</mx:FormItem>
No hover:
Hover: