Highlighted

PDF Alert Message

Avatar

Guest

23-03-2009

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 🙂

Replies

Highlighted

_Pere_Cuyas_

23-03-2009

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");
Highlighted

_Pere_Cuyas_

23-03-2009

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 😉