The form has a Print button and already has this javascript xfa.host.print(1, "0", (xfa.host.numPages -1).toString(), 0, 1, 0, 0, 0);How do I add the following javascript to the same button and its click event?newDocName = "";f1 = this.getField("topmostSubform[0].Page1[0].Last_Name[0]").valueAsStrin...