Avatar

Level 10

You might follow the steps below and if you have issues , please let me know..

prePrint event with JavaScript:

var mandatoryMissed = "";

if(checkbox.rawValue = "1"){

     if(TextField1.rawValue == null || TextField1.rawValue == ""){

          mandatoryMissed = mandatoryMissed + ", " + "TextField1";

     }

     .......Do the same for each of the mandatory field on your form.

}

if(mandatoryMissed != ""){

     xfa.host.messageBox("The below mandatory fields are missing input." + mandatoryMissed);

}

Finally the mandatoryMissed variable can have all the names of the mandatory missed fields..

Use messageBox method to display the mandatoryMissed string to the user in the prePrint event..

Thanks

Srini