Skip to main content
Nikolaos.
Inspiring
October 29, 2020
Answered

Info window with opening the form

  • October 29, 2020
  • 1 reply
  • 893 views

Hello to the community,
Have created a form and would like it to open an info window with the form where a certain info text is.
Close info window manually or automatically after 5 seconds.
How can I do this with Acrobat DC (2015 Clasic / Version 2015.006.30527) or would it be possible with Java script?
If so, please include the code. OS is Windows 10 (2004).

Any idea / help how I could do it is welcome 🙂

 

Thx in Advance

This topic has been closed for replies.
Correct answer George_Johnson

Here's a link that covers how to enter a document-level script, which will work for single or multipage forms: https://www.pdfscripting.com/public/Document-Level-Scripts.cfm

 

Go to the section "Entering/Editing Document Scripts" to see how to enter one. When you add a new one, Acrobat will supply an empty function, which you should delete and then enter the code I showed earlier. You would of course add your own text. When you save the document, close it, and reopen, it will display the message, and clicking the OK button will close the message window.

1 reply

Inspiring
October 29, 2020

Do you want the info window to be displayed each time the document is opened, or something else? If it's a single page form, the simplest is probably to use the following JavaScript in the Page Open event:

 

// Page Open JavaScript
app.alert("Info text goes here.\r\rThis is a new line.", 3, 0);

 

For multi-page forms, you'd place the code in a document-level JavaScript that executes when the form is opened. Post again if you need help with that.

Nikolaos.
Nikolaos.Author
Inspiring
October 29, 2020
I think that's what I'm looking for 🙂
I think ... because I'm a beginner, I can even do everything wrong with the question 🙂

Where can I put this script in?
don't even know the steps, have Acrobat DC (2015 Clasic / Version 2015.006.30527). I only know how it could go with a text field, but now with the open, how?
Could you describe the steps to me? ... would help me a lot.

Thank you in advance for your patience and understanding 🙂
George_JohnsonCorrect answer
Inspiring
October 29, 2020

Here's a link that covers how to enter a document-level script, which will work for single or multipage forms: https://www.pdfscripting.com/public/Document-Level-Scripts.cfm

 

Go to the section "Entering/Editing Document Scripts" to see how to enter one. When you add a new one, Acrobat will supply an empty function, which you should delete and then enter the code I showed earlier. You would of course add your own text. When you save the document, close it, and reopen, it will display the message, and clicking the OK button will close the message window.