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

Convert ENTER/RETURN key to DOWN key

victorchia
Registered: May 5 2009
Posts: 11

Hi,
Is there any way i can convert ENTER/RETURN key to DOWN key? with Acrobat Javascript?
I've tried several ways with similar to javascript used on browser in custom keystroke script section but it couldn't work? Any suggestions?

Thanks

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
The general answer is NO. But what is it that you are trying to do? When the keyboard focus is on a field in a PDF form the enter key "commits" data to the form. In this case you could use one of the events generated on commit to move the keyboard focus. If that's what you want to do.

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]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

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

victorchia
Registered: May 5 2009
Posts: 11
Thank you Thom for the reply.
The purpose of the form is to export all data collected into CSV file and then, with data merge, they are populated in all the marketing materials in InDesign CS2.

However, when the ENTER/RETURN key is pressed in any of the text field (a small outline box appears in the column of the CSV file) and interrupts data merging process. what i've been doing at the moment is to examine the CSV file and manually remove any area where ENTER/RETURN key is press when a PDF form is received.

Therefore the goal is to either disable the keys or turn them into DOWN keys.
so far i've no success with it. Have you come across a situation like this?

Victor
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Never even considered a situation like this. I don't think there is anything you can do about it. Just don't hit return.

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]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

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

victorchia
Registered: May 5 2009
Posts: 11
Thanks Thom,
i guess i'll have to make all text field as SINGLE LINE typing and STROLL LONG TEXT.
We often get use to press ENTER/RETURN when we'll typing on a large text box like this.