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!!
If you're tring to do this with decimal field, then use
Display
num{99/9999999999/99}
Edit
num{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.