These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Validation pattern for IP address

PJ_F
Registered: Dec 10 2009
Posts: 7

Hi Folks,

my forum search returned no results. maybe "IP" is just a little too short :-)

Is there anyone who done this already? I´m trying to validate a textflield with a ip and not doing this via javascript. I have to use the builtin-mechanism.

How do I have to "code" the pattern? Can I put regex directly into the pattern-box?

Thanks
PJ

My Product Information:
LiveCycle Designer, Windows
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Hi,

I don't see how to do this.
With the patterns can only control and rearrange the 'look' of the data, but cannot verify the value of it.
So you cannot define a limitations such as "only numbers betweet 0 and 255".

File LCD help under 'patterns" for information and examples.

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

gkaiseril
Online
Expert
Registered: Feb 23 2006
Posts: 4307
I would look at using JavaScript and the RegExp for the validation. [url=http://javascript.internet.com/forms/val-ip.php]Verify the value of an IP address. Check for special cases such as "0.0.0.0" and "255.255.255.255". Cool![/url] will require some modification to return true or false for the return value of the function.

http://javascript.internet.com/forms/val-ip.php

George Kaiser