Highlighted

Execute script on page change or scroll

New Here ,
Sep 11, 2020

Copy link to clipboard

Copied

I have multiple text fields on each page of a document.  The text fields can be populated through a generic script, from a list of predefined narratives (unique for each group of "x" fields >> i.e. the fields are in groups of three that share narratives) or can be edited in place.  The document highlights the "active edit" text field by changing the background color for the user.

Problem:

When user leaves the page, the highlighted field is not visible.  If the user selects from one of the narratives in the list for the (now) visible group, the event will overwrite the text in the last field selected.

I want to "de-select" the field if the user scrolls away from it being visible.

I understand that there are no page change events.  Can a scroll event be used, and where?  Looking for suggestions.THX!

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

There certainly are "page change events". Each page has a Page Open and Page Close event. You'll find them under the Pages panel by right-clicking a page, selecting Page Properties, then Actions.

TOPICS
Acrobat SDK and JavaScript

Views

25

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Execute script on page change or scroll

New Here ,
Sep 11, 2020

Copy link to clipboard

Copied

I have multiple text fields on each page of a document.  The text fields can be populated through a generic script, from a list of predefined narratives (unique for each group of "x" fields >> i.e. the fields are in groups of three that share narratives) or can be edited in place.  The document highlights the "active edit" text field by changing the background color for the user.

Problem:

When user leaves the page, the highlighted field is not visible.  If the user selects from one of the narratives in the list for the (now) visible group, the event will overwrite the text in the last field selected.

I want to "de-select" the field if the user scrolls away from it being visible.

I understand that there are no page change events.  Can a scroll event be used, and where?  Looking for suggestions.THX!

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

There certainly are "page change events". Each page has a Page Open and Page Close event. You'll find them under the Pages panel by right-clicking a page, selecting Page Properties, then Actions.

TOPICS
Acrobat SDK and JavaScript

Views

26

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Sep 11, 2020 0
Most Valuable Participant ,
Sep 11, 2020

Copy link to clipboard

Copied

There certainly are "page change events". Each page has a Page Open and Page Close event. You'll find them under the Pages panel by right-clicking a page, selecting Page Properties, then Actions.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 11, 2020 0
New Here ,
Sep 14, 2020

Copy link to clipboard

Copied

Thanks yet again, try67.  Just got back on this.  Getting closer to full functionality required. 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 14, 2020 0