View Full Version : markInvalid with disabled TextField

22 Jun 2011, 7:18 AM

I have a disabled textField that contains an amount calculated from a list of numbers. When this amount reaches a certain threshold, I need to raise an error flag to the user, markInvalid will do the trick (red stuff and tooltip). Unfortunately, this method doesn't work with disabled field. Any idea on how to bypass this limitation?

Thanks in advance


22 Jun 2011, 8:05 PM
Alternatively you can set the readOnly property of textfield to true and a put cls onto it so that it appears in gray color(same as disabled field). This might fulfill your requirement.