In my Validate Event using Adobe Reader 8.1.0 or higher, I'm using:
xfa.host.setFocus(); // Clear focus operation
xfa.host.setFocus(this); // Set cursor back to current field
This sets the cursor back to the current field when bad data is entered and works for both the Tab and Enter key. It highlights the bad data.
But this does not work correctly when using Adobe Reader 8.0 and 7.0.x.
Problems I had with these older Readers regarding setFocus:
1. Enter key does not fire setFocus, only Tab works
2. setFocus goes into loop when using a Date/Time field and Reader 7.0.x
3. xfa.host.setFocus() does not clear focus operation like Reader 8.1.0+
Anybody else had similar problems or know a workaround?
Thanks,
Ron