Quantcast
Channel: Adobe Community : Discussion List - LiveCycle Forms
Viewing all articles
Browse latest Browse all 1160

Need Java Help

$
0
0

Okay I am sure I am missing something small but I can't figure it out. 

 

I am putting this on the Print Button Click event.  If the checkboxes aren't checked it should provide an error message.  If the checkboxes are clicked then the doc should print.  What am I missing. 

Thanks!

Jodi

 

if(CheckBoxD.rawValue == "0")
   {messagetext=messagetext+"\tCheck Question D\n";
   errorcount = errorcount + 1;}
   
if (CheckBoxE1.rawValue == "0")
{messagetext=messagetext+"\tCheck Question E1\n";
errorcount = errorcount + 1;}

 

if (CheckBoxE2.rawValue == "0")
{messagetext=messagetext+"\tCheck Question E2\n";
errorcount = errorcount + 1;}

 

if (CheckBoxE3.rawValue == "0")
{messagetext=messagetext+"\tCheck Question E3\n";
errorcount = errorcount + 1;}

 

if (CheckBoxF1.rawValue == "0")
{messagetext=messagetext+"\tCheck Question F1\n";
errorcount = errorcount + 1;}

 

if (CheckBoxF2.rawValue == "0")
{messagetext=messagetext+"\tCheck Question F2\n";
errorcount = errorcount + 1;}

 

if (CheckBoxF3.rawValue == "0")
{messagetext=messagetext+"\tCheck Question F3\n";
errorcount = errorcount + 1;}

 

if (errorcount == 0)
{xfa.host.print(1, "0", (xfa.host.numPages -1).toString(), 0, 0, 0, 0, 0);}

 

else {xfa.host.messageBox("Missing Required Field(s):\n"+ messagetext);}


Viewing all articles
Browse latest Browse all 1160

Trending Articles



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