PDA

View Full Version : How can I disable the TextField validation icon?



abshnasko
20 Jan 2012, 1:25 PM
I have a Validator attached to a field. When validation fails, I want the red line to appear in the field, but I do not want the red icon to appear to the right of the field. How can I accomplish this? I don't see this functionality in the documentation. Thanks!

Colin Alworth
23 Jan 2012, 4:15 PM
Check out Field.setMessageTarget(String) - you'll want to pass in "tooltip" (or, to just not draw that icon, anything but "side"). With that set, it shouldn't even attempt to draw the icon.