Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

PDF Alert Message


Not applicable
Hi all,

How to use a javascript before the PDF document has loaded. I need a script that once the user click on the pdf document and is loaded, displays a message i.e (Welcome to form. Please fill details and press submit). After they click OK, it returns to the normal form.

Thanks 🙂
4 Replies


Level 1
Try to put this javascript code on the INITIALIZE event on the Form parent object (on the yerarchy):

app.alert("Welcome to form. Please fill details and press submit");


Not applicable
Thanks it worked a like a charm. What about an exclamation mark instead of a cross mark in the form.


Not applicable

I would like to have this format, if possible.Is there by any chance we can have it in PDF ? 🙂


Level 1
Try with this:

app.alert("Welcome to form. Please fill details and press submit",1);

The possible 2nd argument can get these values:

0 for the error icon

1 for the warning icon

3 for the info icon

I don't remember wich was the icon for the "2" value 😉