PDF-Forms is a service provided by PDFzone.com | http://www.pdfzone.com/ __________________________________________________________________

I am not sure that onBlur event is going to help, with checkboxes, buttons etc Gayle will not trigger the onBlur event using the Enter key.
In a text field or combobox you could use the commitKey property of the Format or Keystroke event to intercept the Enter key :-


In Form Tool mode go to the Field Properties of the field, choose the Format tab, Choose Custom and hit the Edit button next to "Custom Format Script", then paste in the following, insert the relevant field name and OK out.

if(event.commitKey == 2)   // 2 is the Enter key
 this.getField("nextFieldNameHere").setFocus();

In buttons, checkboxes and radios you could use the MouseUp event - which would be triggered by the Enter key - to move the focus :-

In Form Tool mode go to the Field Properties of the field, choose the Action tab, Choose MouseUp and hit Add, select JavaScript, then Edit, paste in the following, insert the relevant field name, hit OK, then Set Action, then OK.

this.getField("nextFieldNameHere").setFocus();

This approach will be very time-consuming if you have a form with many fields....
An alternative approach would be to write a document level JavaScript function and call it from the relevant event from all affected fields. This function could do all the above for you, and it would be much easier to maintain in the long run. You might need to define an array of all fields and each one's 'next' field to use in such a function.


Hope this helps,
Jub

From: "Gayle Graham" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: <[EMAIL PROTECTED]>
Subject: RE: [PDF-Forms] Enter Key
Date: Thu, 23 Oct 2003 13:10:07 -0700

That is what I want to do but I am a novice at this so I don't
understand how to do what you said.



Gayle Graham

Senior Deputy District Attorney

Support and Technical Services

(925) 957-2226 direct line

(925) 957-2240 fax

[EMAIL PROTECTED]

-----Original Message-----
From: James Plante [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 5:31 AM
To: [EMAIL PROTECTED]
Subject: Re: [PDF-Forms] Enter Key



You can use setFocus in an onBlur JS action to direct the focus to
whatever field you like when the target field is departed. But it may
not be what you want. It should direct the focus to that "next" field
whether you click somewhere else or not.



On Wednesday, Oct 22, 2003, at 15:46 US/Central, Day, Tim G. wrote:



Gayle,



Justice is correct.  I'm pretty sure there is no way to alter Acrobat so
that pressing <Enter> will advance to the next field.  Sorry about that.




-----Original Message-----


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

Sent:Wednesday, October 22, 20034:34 PM

To: [EMAIL PROTECTED]

Cc: [EMAIL PROTECTED]

Subject: RE: [PDF-Forms] Enter Key







Hi Gayle-







Tab is the method used by Acrobat.  Just make sure your tab order is
set.







Justice



-----Original Message-----

From: Gayle Graham [mailto:[EMAIL PROTECTED]

Sent: Wednesday, October 22, 2003 1:25 PM

To: [EMAIL PROTECTED]

Subject: [PDF-Forms] Enter Key



I would like my form fields to advance to the next field when either tab
or enter is pressed.  Is there a way to do this.



And is anyone else getting an error message when trying to search the
forms archive?  Yesterday and today I have had trouble.







Gayle Graham



Senior Deputy District Attorney



Support and Technical Services



(925) 957-2226 direct line



(925) 957-2240 fax



[EMAIL PROTECTED]







Jim Plante

<[EMAIL PROTECTED]>


_________________________________________________________________
Fretting that your Hotmail account may expire because you forgot to sign in enough? Get Hotmail Extra Storage today! http://join.msn.com/?PAGE=features/es



To change your subscription: http://www.pdfzone.com/discussions/lists-pdfforms.html



Reply via email to