Specifying file name when saving FDF file.
I don't know why, but the question I wrote earlier has been treated as spam. I will shorten the question text and post it again.
When saving with FDF, I want to save with a file name that is a concatenation of some field names in the form and the save date and time. First, I tried writing the following code in a text field. The file name as expected is displayed.
var Pink = this.getField("PINK");
var Blue = this.getField("BLUE");
var FNAME = util.printd("yyyymmdd-HHMM-",new Date())+Pink.value+"-"+Blue.value+".fdf";
event.value = FNAME;
And then I created a button and created the following code. I deleted the last line above and added the following. I don't want to be treated as spam again, so I'll just list only one. I'm actually trying out more code. But those was all a failure. Because I want to let the user choose where to save the file, the save window must be opened.
this.exportAsFDF({cPath:cPath + FNAME});
Actually I tried the following too.
this.exportAsFDF(util.printd("yyyymmdd-HHMM-",new Date())+Pink.value+"-"+Blue.value+".fdf")
Please tell me the correct description method. I haven't been able to find the right material for me.
