[rt-users] custom validation on custom fields?

Alex Hall ahall at autodist.com
Fri Oct 28 16:30:20 EDT 2016


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? 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]
We use the hint, but can we clean up the text stating what the input must
match, or hide it entirely unless the text doesn't match? The hints already
describe the format we need in a more readable way than a regex. Thanks.

On Fri, Oct 28, 2016 at 4:02 PM, Matt Zagrabelny <mzagrabe at d.umn.edu> wrote:

> Hey Alex,
>
> On Fri, Oct 28, 2016 at 1:58 PM, Alex Hall <ahall at autodist.com> wrote:
> > Hi all,
> > I've looked through the wiki and the docs, plus on Google, but can't find
> > anything about customizing validation. We have two custom fields which
> may
> > be empty or not, but if they have a value, it has to be of the right
> format.
> > Both are single-line text fields. How would I set up RT so that I can
> apply
> > a regular expression, or some other kind of formatting, to these fields?
>
> It should be right there in the CF admin page.
>
> There is even a drop down with some prepopulated options.
>
> The (?# ) is a way to put a "human" name with the validation rule. For
> instance:
>
> (?#State Abbreviation)^[A-Z][A-Z]$
>
> -m
>



-- 
Alex Hall
Automatic Distributors, IT department
ahall at autodist.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20161028/b2823169/attachment.htm>


More information about the rt-users mailing list