How to print Javascript strings into console, or into a txt file
Good evening, I am trying to find a way to print the strings in my Javascript into the console log, that, or print the strings into a txt file.
Here is what I have so far:
var File = this.documentFileName.replace(/.pdf/,"");
var First = this.getField("First Name");
var Last = this.getField("Last Name");
var Middle = this.getField("Middle Initial");
var State = this.getField("State");
var Lab = "MDV";
if (State = "AL" && "CT" && "FL" && "GA" && "HI" && "IL" && "KY" && "LA" && "MD" && "DC" && "MI" && "MN" && "NJ" && "NM" && "NC" && "OR" && "SC" && "TX" && "UT" && "VA" && "WY") {
lab = "HELIX";
}
var Patient = Last + ", " + First + " " + Middle + " - " + Lab + " - " + State + " - " + "REC FORM";
I am looking for a way to print the variable, "File" so that we can see which files are not correctly spelled, and so that our checkers can correct the files later on.
