Expand my Community achievements bar.

SOLVED

jberry

Avatar

Level 1

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?

1 Accepted Solution

Avatar

Correct answer by
Level 7

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
}

View solution in original post

1 Reply

Avatar

Correct answer by
Level 7

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
}