1

I have created a fillable form in PDF, using Acrobat XI. I did a small experience check to see how the intended users were using it. Well mostly, people started printing it and writing on it.

There is an information bar that appears on top of the PDF, which says the form is fillable, but I feel it falls on the blind spot on the users.

Is it possible to put up a pop-up box, where it says that you can type data into the form etc, and the user has to click ok to get past it? Is such a feature available with Acrobat XI Pro. I Googled, but not much help

2

1 Answer 1

1

A very simple way to do it, if you are OK with a simple message would be creating a document-level JavaScript with the following code:

app.alert("This form is fillable") ;

If you want some eye candy, a still simple way would be to create the message in the layout program, save it as PDF, and then add a button field (read-only, no action) and make that PDF the icon of that button. Then you add another button, labelled OK.

The action of the OK button is to hide the message button and the OK button itself, and then set the focus to the first field (which would best be covered by the message button field. The JavaScript code for the MouseUp event of the OK button would then read:

this.getField("theMessage").display = display.hidden ;
event.target.display = display.hidden ;
this.getField("theFirstEntryField").setFocus() ;

You would save the form with the message button and the OK button being visible. If you want to show the buttons every time the document opens, even after it has been saved by the user, you would create a document-level script:

this.getField("theMessage").display = display.visible ;
this.getField("theOKBox").display = display.visible ;

and that should do it.

8
  • Thanks. I Liked the first step, only if it could change the Cross ICON to an Exclamation or a Tick icon. The other instructions are complicated for me to follow.
    – Firee
    Nov 30, 2014 at 15:06
  • ok, got a hang of it.. got more options from here acrobatusers.com/tutorials/popup_windows_part1
    – Firee
    Nov 30, 2014 at 15:36
  • There is the "status" icon, which you activate with app.alert("This form is fillable.", 3) ;
    – Max Wyss
    Nov 30, 2014 at 20:58
  • The Title of the box contains a persistent message "Warning: Javascript Console".. Any way to get that removed?
    – Firee
    Dec 1, 2014 at 5:44
  • @Firee: Are you sure that it says "Warning: JavaScript Console"? And, no, this warning can not be suppressed; Adobe considers it to be a security feature.
    – Max Wyss
    Dec 1, 2014 at 10:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .