Copy link to clipboard
Copied
Hello,
I want to create fields with number input. For example, you put in the number 5, and then they will create 5 text input fields. I will use this in an interactive PDF document.
It seems I may interpret the question somewhat differently than Bob. It sounds to me like you want the user (who presumably has some numbers in-hand; tracking numbers or something), to enter the number (amount) of numbers they'd like to enter and then have that many input fields appear to facilitate their entry of those numbers.
InDesign does not have native features that facilitate such things. However, what you describe is possible, but not necessarily simple. It would require using Javascri
...Copy link to clipboard
Copied
Copy link to clipboard
Copied
It seems I may interpret the question somewhat differently than Bob. It sounds to me like you want the user (who presumably has some numbers in-hand; tracking numbers or something), to enter the number (amount) of numbers they'd like to enter and then have that many input fields appear to facilitate their entry of those numbers.
InDesign does not have native features that facilitate such things. However, what you describe is possible, but not necessarily simple. It would require using Javascript, in Acrobat, to hide/show already-existing fields based on the value entered in the number-input field. I'm more of a Javascript copy/paster than a coder, so using your 5-field example, translated to plain English, the script functionality would work something like:
IF numberInputField value=1
numbercountField01 display=visible
numbercountField02 display=hidden
numbercountField03 display=hidden
numbercountField04 display=hidden
numbercountField05 display=hidden
IF numberInputField value=2
numbercountField01 display=visible
numbercountField02 display=visible
numbercountField03 display=hidden
numbercountField04 display=hidden
numbercountField05 display=hidden
and so on...
Copy link to clipboard
Copied
From this brief description, this can be done in Acrobat with scripts, but without more information it will be difficult to provide any specific instructions.