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

Form Field Won't Allow Punctuation with Patterns

cgleix
Registered: Jan 18 2011
Posts: 4

I'm using Adobe LiveCycle ES version 9.something
 
I have run into this problem several times. When I apply a display pattern to a number field, a phone number for example, if the user enters "540-204-2153" instead of "2235462153" it won't display how it is set in the pattern: "(540) 204-2153".
 
The same problem happens when I have a currency pattern with commas and decimal points and the user enters the number with punctuation instead of a straight number.
 
Is there a way to override this?
 
Thanks!

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

for those cases you can define several individual edit pattern.

Use this pattern in the edit tab...

text{'('999')' 999-9999}|text{9999999999}|text{999-999-9999}|text{999 999 9999}

... to allow inputs in the following formats

(123) 456-7890, 1234567890, 123-456-7890 and 123 456 7890

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs