Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

Please Help with Code Triggering Two Things!

$
0
0

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

}


Viewing all articles
Browse latest Browse all 5571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>