How would I go about setting up a pop-up message (when a form is opened) that would ask if they would like to print the instructions?
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
In the Form docReady event (javascript) add:
var printQuestion= app.alert("Do you want to print the instructions? \n\nClick Yes or No.",2,2, "Print Instructions?");
if(printQuestion == "4") //4 equals yes
{
event.target.print(); //opens print dialog
}
if(printQuestion == "3") //3 equals no
{
//dont do anything
}
Views
Replies
Total Likes
Hi,
In the Form docReady event (javascript) add:
var printQuestion= app.alert("Do you want to print the instructions? \n\nClick Yes or No.",2,2, "Print Instructions?");
if(printQuestion == "4") //4 equals yes
{
event.target.print(); //opens print dialog
}
if(printQuestion == "3") //3 equals no
{
//dont do anything
}
Views
Replies
Total Likes