2 Replies Latest reply on May 25, 2017 12:44 PM by RossG

    I want to have a Save button on a form that saves the pdf based on what is in some fields.

    RossG

      I want to have a Save button on a form that saves the pdf based on what is in some fields. I would like  the button removed from the saved pdf. I'm a Javascript newbie and I need to know where is the appropriate place to put the script to generate the file path (field, folder, document, etc.).

      I'm also not sure the file path will be created properly as it doesn't pass the field values with the debugger.

      var d = new Date();

      var text1 = this.getField("NCMN");

      var text2 = this.getField("CLASSLOT");

      var text3 = this.getField("PO");

      event.value = "/septaad1.org/shares/OPS_VehEng_Quality/NCMN/" + d.getFullYear() + "/NCMN_" + text1 + "_" + text2 + "_" + text3 + "_" + (d.getMonth() + 1) + "-" + d.getUTCDate() + "-" + (d.getFullYear().toString().substr(-2)) + ".pdf";