Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Data Validation in LiveCycle Designer ES 8.2

Avatar

28-08-2008

Hi. I've been asked to improve an existing form that was converted from Acrobat Pro to LiveCycle Designer a ways back by someone else. The problem is I can't get the Date, Phone and Salary validation to work like it did in Acrobat Pro. It seems the validation has taken a step back in LiveCycle.



I would like to get the data validation to work the same as it did in Acrobat Pro.



Phone Number Validation:

1. Allow: 9999999999 or 999-999-9999 or 999.999.9999 to be entered

2. Convert what is entered to (999) 999-9999

3. Only allow numeric digits or - or . to be entered, no alphabetic

4. Only allow 10 digits to be entered, not counting - or .

5. When bad data is entered, give message and put focus back on field.



Date Validation:

1. Allow: 08/08/08 or 08/08/2008 or 8/8/08 or 08/08/08 or - instead of /

2. Convert what is entered to 08/08/2008

3. Only allow 10 digit/char max.

4. When bad data is entered, give message and put focus back on field.



Salary Validation:

1. Allow: 9999999

2. Convert to $999,999.00

3. Only allow numeric digits to be entered, no alphabetic

4. Only allow 6 digits to be entered.

5. When bad data is entered, give message and put focus back on field.



I've been able to get some of this to work using built-in and custom patterns strung together with |, but it doesn't work as nice as the Acrobat Pro did and I've had trouble limiting number of inputed digit/chars. Do I need some complicated scripts to make this work?



Any ideas?



Thanks!

Replies

Avatar

10-09-2008

Hi,



Is it possible to access database from a stand-alone PDF template.?



Please suggest me in this regard.