Skip to main content
Participating Frequently
May 21, 2024
Question

Get current active field in PDF

  • May 21, 2024
  • 1 reply
  • 449 views

Is there a JavaScript code that gets the current text field that is being focused? I reckon I can use events but I'm not sure how to "listen" to these events.

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
May 21, 2024

No, there are no such global event listeners in Acrobat. The only way to do that is to add a script to each field's On Focus event (and probably On Blur, too), to keep track of the currently active field, via a doc-level variable.