Re: custom validation on custom fields?

Matt Zagrabelny <[email protected]>
Newsgroups gmane.comp.bug-tracking.request-tracker.user
Message-ID <CAOLfK3V72SVZZiurDxrQbm6RZi+tijK=Uo0zf+F_yKEapsStLw@mail.gmail.com>
On Fri, Oct 28, 2016 at 3:30 PM, Alex Hall <[email protected]> wrote:
> Indeed there is, and I honestly don't know how I missed it. All I can say is
> I must have tabbed right past it, so the screen reader never spoke the
> field's name.
>
> I noticed the pound sign being used a lot. Is the rule you mentioned in any
> way tied to the field, or is it just an internal note so you know what you
> were doing if you go back later?

Hold....

 On a related note, is there a way to give a
> more readable message after the field than
> input must match [complex regex that most users won't understand]

This.

I believe the validation comment is passed back to the end-user when
validation fails:

"Custom Field State must match State Abbreviation." or something on that order.

for (?#State Abbreviation)^[A-Z][A-Z]$

FWIW, I am not sure if I've ever used the validation field of a CF. I
did have  a conversation with Best Practical about it once, though.

-m
---------
RT 4.4 and RTIR training sessions, and a new workshop day! https://bestpractical.com/training
* Los Angeles - Q1 2017
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.