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

Checkbox selected triggers popup notification

Explorer ,
Apr 16, 2020 Apr 16, 2020

Copy link to clipboard

Copied

I'd like to have a checkbox field named Multipstep, when selected, to trigger the default notification popup with a message I've configured. I don't see this as an available option in Actions, so I assume it requires JavaScript. Anyone know how I'd code this?

TOPICS
Acrobat SDK and JavaScript

Views

703

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 ,
Apr 16, 2020 Apr 16, 2020

Copy link to clipboard

Copied

Solved my own problem. If anyone encounters this, the code I used was: 

if (event.target.value != "Off") { // box is checked app.alert("MY CUSTOM ALERT MESSAGE HERE");

}

else { // box is unchecked

}

 

I added a JavaScript "Mouse Up" action to the checkbox to display this alert. There may be a better way, but this seems to work for me. 

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
Community Expert ,
Apr 16, 2020 Apr 16, 2020

Copy link to clipboard

Copied

LATEST

 

https://www.acrobatusers.com/tutorials/popup_windows_part1/

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

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