Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

fillable PDF, with two text boxes linked

Community Beginner ,
Jun 03, 2024 Jun 03, 2024

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.

TOPICS
Edit and convert PDFs , How to , PDF , PDF forms
785
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 04, 2024 Jun 04, 2024

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 04, 2024 Jun 04, 2024

How can I resolve that?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 04, 2024 Jun 04, 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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 04, 2024 Jun 04, 2024

A custom keystroke works with keystrokes, not pasting data.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 04, 2024 Jun 04, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 04, 2024 Jun 04, 2024
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines