Answered
Hello
I am trying to figure out how to extract the last four characters of a text field, and populate those characters into another text field.
For example textfiled1 is populated with "123456789", and would like have
textfield2 reveal "6789"
I am using Acrobat 8.17
Thank you in advance for your help
var f2 = getField("textfield2");
if (event.value.length > 3) {
f2.value = event.value.substr(-4);
} else {
f2.value = "";
}