2 Replies Latest reply on Jul 29, 2010 10:52 AM by HowardF

    Validate form before submitting via email as a pdf

    HowardF

      I have form that checks a a field before printing.

       

      This is the code:

       

      var test = this.getField("pay")
      if (test.value == "Off") {
      app.alert("Please select a payment method", 1, 0);
      } else {
      var pp=this.getPrintParams();
      this.print(pp);
      }   

       

      I need a similar code to submit the entire form as a pdf attachment to an email message if the same test condition is met.

       

      I haven't looked at ths material in a long time so I am getting rusty!

       

      Thank you.

       

      Howar