Friendly Validation Errors?

Hello,

I’ve searched the archives, Google, the wiki (so I’m sorry if the answer to this is there, but I just missed it.)

Is there any way, short of editing the source, to have more friendly validation errors. So, rather than “Input must match [Mandatory]” I could change it to say “This field is required.” Or, instead of “Input must match ^[a-zA-Z]+$”, it could say, “Value must contain only letters.”

Thanks,

Mike

Is there any way, short of editing the source, to have more friendly
validation errors. So, rather than “Input must match [Mandatory]” I
could change it to say “This field is required.” Or, instead of “Input
must match ^[a-zA-Z]+$”, it could say, “Value must contain only
letters.”

You can make the regular expression you use
(?#Must contain letters) and RT will say “Input must match [Must
contain letters]”. You could probably use a localization trick with
en.po to change “Input must match” also, although I’m not sure where
else RT uses that phrase.

The combination of these should clean up the messages a bit.

-kevin