Changes between Initial Version and Version 1 of Ticket #10725


Ignore:
Timestamp:
Apr 17, 2010, 9:45:28 AM (10 years ago)
Author:
bill
Comment:

I can see why you expect the field to turn yellow after calling validate().

However, by design, we don't mark a field as yellow (even if it is invalid) until the user has touched it. I.e. tabbed into/out of the field, or clicked it and then clicked somewhere else.

Note that validate() is actually called on every ValidationTextBox on page load.

So I don't think we want to change the current behavior, although you can easily get the effect you want by doing:

widget._hasBeenBlurred = true;
widget.validate();

(same as Form does).

Doug, anything to add?

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10725

    • Property Cc Douglas Hays added
    • Property Status changed from new to closed
    • Property Resolution changed from to wontfix
  • Ticket #10725 – Description

    initial v1  
    1 When leaving a required ValidationTextBox empty calling validate() on it does return false but does not make it yellow with an icon indicating the field does not validate.
     1When leaving a required !ValidationTextBox empty calling validate() on it does return false but does not make it yellow with an icon indicating the field does not validate.
    22
    33When clicking in and out of the field the decoration does appear.
    44
    5 When calling validate() on the form that contains the ValidationTextBox the decoration also appears.
     5When calling validate() on the form that contains the !ValidationTextBox the decoration also appears.
    66
    77This can be tested with: