Remap one text field to several separate fields (boxes) in pdf form.
- We have a control type that is text and collects a 10 digit number
- The Pattern is set to 1\d{9}
- The Error Msg is "This number must start with a 1 and be 10 digits long
- It is currently mapped to a pdf form as one entire field.
Our state agency form has changed and is now requiring each digit to be placed in a separate box on the pdf form. So instead of one field (ie: 1253647912) each digit must be mapped to a separate box.
Can I accomplish this through re-mapping the form?
0
-
Official commentHello,
Yes it can be accomplished via remapping.
Please follow following steps:- Create form
- Add 1 Phone control
- Add 10 Text controls disable/hide them.
- Map 10 text controls to the 10 fields of your PDF
- In rule section use below rule to split the phone control into 10 different text fields
- Save and Test the form.
- In Submissions section you can check the result of mapping.
{
var a = Phone.value;
var digit = a.toString().split('');
N1.value=digit[0];
N2.value=digit[1];
N3.value=digit[2];
N4.value=digit[3];
N5.value=digit[4];
N6.value=digit[5];
N7.value=digit[6];
N8.value=digit[7];
N9.value=digit[8];
N10.value=digit[9];
}
Kindly follow above steps and let us know if you have any queries or concerns.
Thank you.
Please sign in to leave a comment.
Comments
1 comment