Skip to main content
Patrick Bruggink
Known Participant
June 4, 2024
Question

fillable PDF, with two text boxes linked

  • June 4, 2024
  • 2 replies
  • 1088 views

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.

This topic has been closed for replies.

2 replies

PDF Automation Station
Community Expert
Community Expert
June 4, 2024

A custom keystroke works with keystrokes, not pasting data.

try67
Community Expert
Community Expert
June 4, 2024

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.

PDF Automation Station
Community Expert
Community Expert
June 4, 2024

I stand corrected.  The text box won't accept any characters beyond it's limits when pasting.

Bernd Alheit
Community Expert
Community Expert
June 4, 2024

There is nothing wrong. The event fieldFull will not trigger when you psate text.

Patrick Bruggink
Known Participant
June 4, 2024

How can I resolve that?

JR Boulay
Community Expert
Community Expert
June 4, 2024

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.

Acrobate du PDF, InDesigner et Photoshopographe