jasonl
Jan 21, 2009, 8:43 AM
Hi,
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">
</ext:TextField>
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.
Thanks
Jason
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">
</ext:TextField>
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.
Thanks
Jason