SAVING A SPACE IN FILE NAME
Javascript newbie here,,,and thanks in advance for any help.
I am simply trying to add a couple of spaces when using a javascript to save a file. The file is an employment application which is named "Phoenix Employment Packet.pdf" When an applicant presses the SAVE button, I would like the saved file to go into a specified network folder with a new filename using the "last name" and "first name" fields of the form.
Everything seems to be working fine, except I cannot get it to save WITH spaces. For example: Fred Smith fills it out and saves. The resulting file name is: smithfredapplication.pdf instead of: smith fred application.pdf. or even better yet, smith, fred application.pdf.
Here is my code. Any help is greatly appreciated.
this.saveAs("/c/APPTESTFILE/" + this.getField("lastname").value + "" + this.getField("firstname").value + "" + "application.pdf");
Oh...running Adobe Acrobat Pro DC no Win10 64bit
