Copy link to clipboard
Copied
Is there a way to determine whether a field is selected or not?
Is there some kind of array/collection that consists of currently selected objects?
Best regards
/PA
Copy link to clipboard
Copied
Not with a script, no. Maybe by using a plugin.
Copy link to clipboard
Copied
For fields, you can add a script to "On Focus" and "On Blur" that would set a variable to the name of the field in question. When the focus event triggers, you'd know that field is active.
For annotations, you can use...
this.selectedAnnots
... to get an array of Annotation objects corresponding to all currently selected markup annotations.
I don't recall any other objects that can be detected when selected or deselected.
J-
Find more inspiration, events, and resources on the new Adobe Community
Explore Now