[rt-users] Hiding "Input must match"

Ruslan Zakirov ruz at bestpractical.com
Fri Nov 23 09:27:43 EST 2012


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