Skip to main content
pera50676849
Participant
Oct 19, 2016 6:49 AM UTC
Question

Selected objects?

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

This topic is closed to new replies. Start a new post to keep the conversation going.

2 replies

JoelGeraci_Datalogics
Participating Frequently
Oct 19, 2016 2:32 PM UTC

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-

Translate
try67
Community Expert
Community Expert
Oct 19, 2016 11:15 AM UTC

Not with a script, no. Maybe by using a plugin.

Translate