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

I need help writing a script for a Dialogue Pop up

Community Beginner ,
Jan 04, 2026 Jan 04, 2026

Hello I want to make button with a script that displays a custom Dialogue Pop Up window. I've searched for guides for how to do it like this, or this but nothing has been helpful for what I need.

 

Here is tha screnario:

We have three text fields: "Text 1", "Text 2" and "Text A".

 

There is a button with a script. When you press it checks if there if Text 1 and Text 2 are blank. If there is any text in both of them, a dialogue Pop-Up appears with two buttons. The text in the buttons is thext input in Text 1 and Text 2 respectively.

 

When you click on one of the buttons, it swaps the text input of the field Text A with the input of Text 1 or Text 2 depending on which button was pressed. i.e. if I press button 1 (which diplays the text from Text 1) the string from Text A is moved to Text 1 and the string from Text 1 is moved to Text A.

TOPICS
How to , PDF , PDF forms
110
Translate
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 ,
Jan 04, 2026 Jan 04, 2026
Translate
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 ,
Jan 04, 2026 Jan 04, 2026

https://www.pdfscripting.com/public/ACRODIALOGS-OVERVIEW.cfm

 

 

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

Translate
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 ,
Jan 06, 2026 Jan 06, 2026
LATEST

Writing dialogs is a pretty complex task in Acrobat. You got some good reference links in the replies above, but this might not be the best task to start with, if you're a novice in Acrobat JS...

 

If you're interested in hiring a professional to create it for you, feel free to contact me privately by clicking my user-name and then on the blue "Message" button.

Translate
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