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

Formatting numeric fields with slashes

clueless1942
Registered: Jun 14 2010
Posts: 23
Answered

Hi,

I'm trying to create a numeric field for the SS number (Social Security), but I don't understand how the whole pattern thing works.

I don't know what I should put in each of the Display/Edit/Validation/Data fields. What I'd like the form to do is that, when the user keys in the number (14 digits, all of them numerical) and exits, the form should arrange them like this:

12 / 1234567890 / 12

(there's no need for spaces, just want the slashes separating 3 groups)

Based on the default types, I tried something like:

[i]num{zz/zzzzzzzzzz/zz}

num{zz/zzzzzzzzzz/z9}[/i]

but it didn't work.

Also, I would ask you another question: supposing that I get this format done, when I get back the responses, which format will the data adopt? Will it be a raw number (12345678901212) or a formatted string (12/1234567890/12)?

Thank you so much!!

My Product Information:
LiveCycle Designer, Windows
Bamboolian
Registered: Jul 27 2010
Posts: 48
Hi,

If you're tring to do this with decimal field, then use

Displaynum{99/9999999999/99}
Editnum{99999999999999}
but I would recommend to use text field with validation since decimal field cannot restrict entering digits.
Look into [Object library] - [Custom] and you should find Social security number field for US.
Maybe you can customize a little for your use.
clueless1942
Registered: Jun 14 2010
Posts: 23
Thank you so much, bamboolian!!!

As you suggested, I changed to text field, also.

Your help (as the help from the rest of the forum users) is truly appreciated. I've learned a lot from acrobatusers.com in the last weeks.