6 Replies Latest reply on Jan 12, 2012 1:48 PM by JCS36987

    app.mailMsg script returning undefined in sub, msg

    JCS36987

      I am trying to get an app.mail javascript to generate an email with the file location in the body of the email and to pull info from a field in the form for the subject.  The button generates the email with the correct addresses but the subject and message body return "undefined".  I'm not sure what I'm missing here.  My script is listed below.  Any help would be approciated.  Thanks

       

      I'm running this on a mouseUp event:

       

      app.mailMsg({bUI: true, cTo: "someone@somewhere.com"

                                 cSubject: Sub, cMsg: cMyMsg});

       

      var cMyMsg = "this.path";

       

      var Sub = getField("Document_Title").valueAsString;