Opened 10 years ago

Closed 10 years ago

#16014 closed defect (invalid)

Validation text box pattern is not parsed correctly

Reported by: skamaraj Owned by: Douglas Hays
Priority: undecided Milestone: tbd
Component: Dijit - Form Version: 1.8.0
Keywords: Cc:
Blocked By: Blocking:



I am setting the pattern for a validation text box as "[0-9
-]{25,}". Validation message pops up only if the value does not satisfy the first part i.e [0-9//-]. It does not check to see if the length is 25 or not.

On debugging, I observe that the _partialre is modified to "(?:(?:[0-9\-]|$){25,})$" instead of "(?:([0-9\-]{25,})$" . Am I setting the pattern incorrectly?

Change History (3)

comment:1 Changed 10 years ago by skamaraj

pattern set is "[0-9//-]{25,}"

comment:2 Changed 10 years ago by bill

Component: GeneralDijit - Form
Owner: set to Douglas Hays

comment:3 Changed 10 years ago by Douglas Hays

Resolution: invalid
Status: newclosed

The ValidationTextBox? widget is trying not to "yell" at you while you're typing. If you look at the class names on the widget's outer DIV you should see dijitTextBoxIncomplete meaning it's not yet valid, but not certainly invalid (until you blur signalling that you are done typing).

Note: See TracTickets for help on using tickets.