Fortunately, hitting the [Enter] key causes a field's Exit event to be executed. This means that while you can't get Acrobat to automatically set focus to the next field in tab order when the user presses the [Enter] key, you can use JavaScript to set focus to the field which
you know is next in tab order.
All you need to do is place the following JavaScript code in a field's Exit event to have focus move to another field:
xfa.host.setFocus("
FieldName");
(Note that you would replace
FieldName with the name of the field which should receive focus.)
The key here is to replicate your form's tab order by using this script in each field's Exit event so that as the user hits the [Enter] key, focus moves to the next field in tab order (and they can still use the tab key if they want to -- just make sure you keep the form's tab order in sync with the sequence of xfa.host.setFocus calls).
I've attached a form with 3 text fields. Their tab order is set in the order that they're numbered (1 - top, 2 - bottom, 3 - middle). Check-out the script in their Exit events.
Stefan
Adobe Systems