How can I setup IP Address validation on a custom field?

Paul Stahlke
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 10, 2012

One of the custom fields we'd like to setup is for an IP address. Is there a plugin or validator that can check an IP address entry for proper formatting? We need to ensure this, since we'll be pulling the IP address via the API to be used in another system. Thanks.

2 answers

1 accepted

1 vote
Answer accepted
Andrey Markelov November 21, 2012
0 votes
JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 10, 2012

There are plugins that validate a custom field against a regex, or you could do it with a couple of lines of groovy. Can't find the example lines right now though.

Suggest an answer

Log in or Sign up to answer