[rt-users] Hiding "Input must match"

Jim Tambling Jim.Tambling at datatote.co.uk
Fri Nov 23 09:39:52 EST 2012


Thanks Ruslan, my forms are looking a lot less cluttered.

Regards, Jim

-----Original Message-----
From: ruslan.zakirov at gmail.com [mailto:ruslan.zakirov at gmail.com] On Behalf Of Ruslan Zakirov
Sent: 23 November 2012 14:28
To: Jim Tambling
Cc: rt-users at lists.bestpractical.com
Subject: Re: [rt-users] Hiding "Input must match"

On Fri, Nov 23, 2012 at 5:39 PM, Jim Tambling <Jim.Tambling at datatote.co.uk> wrote:
> Hi,
>
>
>
> I have created a mandatory custom field for IP addresses. I use a 
> regex to ensure it is a valid IP address. Is there any way of hiding 
> the “Input must match” portion? At present my CF looks like this:
>
>
>
> Source IP
>
> Enter one value
>
> Input must match
> \b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0
> -9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-
> 9]|[01]?[0-9][0-9]?)\b
>
>
>
> Which is a bit unsightly. Anyway to hide the regex?
>

Use a comment in the beginning of the regexp. Take a look at how mandatory regexp looks.

> Regards, Jim
>
>
>
> P.S. RT 3.8.2
>
>
> --------
> We're hiring! http://bestpractical.com/jobs
>



--
Best regards, Ruslan.


More information about the rt-users mailing list