Is there a way to make the code below NOT bring up the prompt "Please Complete Customer B Information” if you select
“No” to the first question? If “No” is selected I would like the form to print, which it will but it also brings up the prompt "Please Complete Customer B Information”.
Thanks for any help!!
var answer=xfa.host.messageBox("Is this a Joint Account?","Confirmation Required !!!",2,2)
if(answer == 3)
{
PrintButton1.execEvent("click");
}
if(answer == 4)
{
var answer=xfa.host.messageBox("Have You Completed Customer B Information?","Confirmation Required !!!",2,2)
}
if(answer == 3)
{
var answer=xfa.host.messageBox("Please Complete Customer B Information!","",1)
}
if(answer == 4)
{
PrintButton1.execEvent("click");
}