Skip to main content
Known Participant
September 11, 2020
Answered

Execute script on page change or scroll

  • September 11, 2020
  • 1 reply
  • 593 views

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!

This topic has been closed for replies.
Correct answer try67

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.

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
September 11, 2020

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.

Known Participant
September 14, 2020

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