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!
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