Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Selected objects?

New Here ,
Oct 18, 2016 Oct 18, 2016

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

TOPICS
Acrobat SDK and JavaScript
391
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 19, 2016 Oct 19, 2016

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Oct 19, 2016 Oct 19, 2016
LATEST

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
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines