These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Continue Text Field on next Line

ranjit_ji
Registered: Nov 24 2008
Posts: 5

Hi,

I'm looking for either a script or way to create a field where the recipient can start writing in text in a field "A" and the typed in text continues in another field "B" below, where Field "A" ends.

Scenario:

line 1: hkjhdfkjhdj dkghkjd address: ___Field A______________

line 2: _______Field B_______________________. ewdfdsfdf

Thank you in advance for any suggestions.

Ranjit.

My Product Information:
Acrobat Pro 8.1.2, Macintosh
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Using JavaScript, a field can be created on the fly, but this will only work in Reader for a Reader Enabled PDF, and it's not the best strategy. I would be better to have all of the necessary form fields already on the form.

Moving the focus from one field to the next while the user is typing is a problem. It can be done but it's awkward. If a field has a fixed character width then the Keystroke Event object includes a "fieldFull" property. This can be used to set the focus to another field, but you have to be careful not to lose a keystroke in the process.

If you do some searches on this topic you should find several posts similar to yours.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

tjohnson770
Registered: Nov 24 2008
Posts: 1
I am having the same issue as Ranjit. I am actually surprised that it is this difficult to do (at least for beginners). I would love to do a search for more posts on this topic, since I can't figure out Thom's solution, but I don't even know exactly how to describe the problem properly.

I'm sorry. I'm just frustrated.
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Do a forum search on "continue text"

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script