View Full Version : [FIXED] [V0.8.0] v0.7: RegexText on TextField not rendered correctly

Jan 21, 2009, 8:43 AM

When i use a regular expression to validate a TextField - e.g.:

<ext:TextField ID="txtLastName" runat="server" FieldLabel="Last Name" Regex="^\w+([-.`'\s]?\w+)?$" RegexText="Invalid characters" MsgTarget="Side" AllowBlank="False" MaxLength="40" MaxLengthText="Last name must not exceed 40 characters">

The validation works correctly, but the error message is rendered between forward slashes:

/Invalid characters/

Incidentally, this only applies to Regex validation - error messages for minimum length and maximum length render correctly.


Jan 21, 2009, 1:46 PM
Hi Jason,

Thanks for pointing out this bug. The "RegexText" property was improperly marked to render as a regular expression and not as a "string".

I fixed the bugs and have committed the code to SVN. The fix will also be publicly available with the v0.8.0 release.