jberry

Avatar

Avatar

jillybeanz66

Avatar

jillybeanz66

jillybeanz66

12-03-2018

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?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

MinusZero

Avatar

MinusZero

MinusZero

12-03-2018

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
}

Answers (0)