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

How can I detect non-hidden pdfs?

Explorer ,
Jun 16, 2017 Jun 16, 2017

Copy link to clipboard

Copied

Hi,

I want to only apply event to non-hidden files.  I tried the following but it did not bring up the app alert when I had a non-hidden pdf file in the sequence.  What am I doing wrong?  I know it must have something to do with the bolded text.

if (this.hidden = false)

{

if (3 == app.alert("Before proceeding, confirm scanned documents were backed up.  If not, click No to close the program and backup the scanned documents before executing the program.",1,2))

{

event.rc = false;

}

}

TOPICS
Acrobat SDK and JavaScript , Windows

Views

345

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

correct answers 1 Correct answer

Community Expert , Jun 16, 2017 Jun 16, 2017

A typo in the first line. It should be...

if (this.hidden == false)

Votes

Translate

Translate
Community Expert ,
Jun 16, 2017 Jun 16, 2017

Copy link to clipboard

Copied

A typo in the first line. It should be...

if (this.hidden == false)

Votes

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
Explorer ,
Jun 17, 2017 Jun 17, 2017

Copy link to clipboard

Copied

LATEST

OMG, yes, that was the problem.  I somehow missed this.  Thanks.

Votes

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