After trials, tribulations, heartbreak and pain I finally worked out the Java code to place variables into file names to save/print the result sides. It worked perfectly and I was extremely proud of myself as I am not a programmer.
All was going well until I uploaded to Moodle and tested it on the server...
Instead of my student names and course name in the file name area, all I could/can get was player.pdf....
Here is my code:
var player = GetPlayer();
document.title=first + " " + middle + " " + last + " " + "-" + " " + title;
All the variables have been checked, like a million times, and it does work brilliantly locally.
Any assistance would be most welcome!
I've added on of the modules below.