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

Can you setfocus in app.response?

jmilanski
Registered: Dec 13 2010
Posts: 2

Hi all,
I've got a form that the user unprotects using a password on an app.response window.
 
The problem is that when the window appears, the response field does not have the focus, so the user must always do an extra 'click' in the field, and then type the password. It's annoying.
 
Is there anyway to force the focus into the app.response response box? Thanks!
 
-

My Product Information:
LiveCycle Designer, Windows
try67
Expert
Registered: Oct 30 2008
Posts: 2398
That's usually what happens... When I run app.response() from the console, the cursor is already in the input field. Which version of Acrobat/Reader do you use?

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

jmilanski
Registered: Dec 13 2010
Posts: 2
When I put this code into a form created with LiveCycle 9, and run use Acrobat X (10.0.0), the cursor does NOT default into the text box. I have to click in it.

app.response({
cQuestion: "Enter Password:",
bPassword:true
});

Any ideas anyone? Thanks!