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

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
_Pere_Cuyas_
Level 1
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
http://slayeroffice.com/code/custom_alert/



I would like to have this format, if possible.Is there by any chance we can have it in PDF ? 🙂
_Pere_Cuyas_
Level 1
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 😉