Skip to main content
pera50676849
Participant
October 19, 2016
Question

Selected objects?

  • October 19, 2016
  • 2 replies
  • 401 views

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 has been closed for replies.

2 replies

JoelGeraci_Datalogics
Participating Frequently
October 19, 2016

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-

try67
Community Expert
Community Expert
October 19, 2016

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