How to use a Document Script to make Multiple Text Fields accept just 4 numbers?
Hello,
I am trying to use a Document Script to limit Multiple text fields (68 text fields) to accept just 4 numbers in an Interactive Pdf form.
A user is given 26 Numbers, all 4 digits, starting with a 0 sometimes.
To order a product, they need to enter one of the 26 Numbers in a text Field.
The text Field names are "Product Number 1", "Product Number 2".... with Spaces.
I came across this script to make sure the field just collects 4 Number:
event.value=event.value ? util.printf("%04d", event.value): "";
I don't know how to use it.
1. Would the Field Names with spaces be a issue?
2. I would like to be able to enter the script in just 1 place and not every text Field.
Thanks,
Falguni.