Hiding "Input must match"

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?

Regards, Jim

P.S. RT 3.8.2

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.

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

Regards, JimFrom: ruslan.zakirov@gmail.com [mailto:ruslan.zakirov@gmail.com] On Behalf Of Ruslan Zakirov
Sent: 23 November 2012 14:28
To: Jim Tambling
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Hiding “Input must match”

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.

Hi Ruslan, how do you put the comment at the beginnig of the regex? What is
the form?

Thanks

View this message in context: http://requesttracker.8502.n7.nabble.com/Hiding-Input-must-match-tp51975p55374.html