Copy link to clipboard
Copied
I created a fillable PDF, with two text boxes linked by this code:
var t1=this.getField ("RennenVoorDeGeit1"); if (event.fieldFull) { getField("RennenVoorDeGeit2").setFocus(); }
Now when I type a text within acrobat the text does move to column 2 but when I copy a text from microsoft word it no longer works. Anyone have an idea what is going wrong?
Using Acrobat 2024
Here is the PDF file.
Copy link to clipboard
Copied
There is nothing wrong. The event fieldFull will not trigger when you psate text.
Copy link to clipboard
Copied
How can I resolve that?
Copy link to clipboard
Copied
There are no simple solutions: you'd have to create a script that counts the number of characters pasted and splits the text between the two fields.
Copy link to clipboard
Copied
A custom keystroke works with keystrokes, not pasting data.
Copy link to clipboard
Copied
Not true. It should trigger even when pasting text into the field. However, the fieldFull property might not get properly set in such a scenario.
Copy link to clipboard
Copied
I stand corrected. The text box won't accept any characters beyond it's limits when pasting.