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

setFocus help?

Participant ,
Feb 11, 2018 Feb 11, 2018

Copy link to clipboard

Copied

I'm using this script that when opens doc to the first page then automatically goes to the second page. Works fine, but the first page has text on it I would like to be able to read but the doc goes to the second page so fast there isn't enough time to read the text on the first page. What I need help with is how to change this script that would open to the first page (say for 5 seconds) then go to page two? Can someone tell me how to do this? Thanks.

Here's the script I'm using and have it in the doc level:

if(this.getField("Counter").value>3)

    {this.getField("Counter").setFocus();}

I tried to change the "3" to "5" (or higher) but nothing seems to work.

TOPICS
Acrobat SDK and JavaScript , Windows

Views

215

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
community guidelines
no replies

Have something to add?

Join the conversation