Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

Change filename when submitting xml-file

Avatar

Former Community Member
Hi,

Is it possible to change the file name when a user click on send? Or, preferable, to link the name of the file with a field for a person's name?



/ Ulf
1 Reply

Avatar

Former Community Member
This is a locked functionality from Adobe. You would have to buy an additional package named "security server". It's f%#¤%¤# amazing that it's not included in the Reader Extention Server we bougth. As all other server applications from Adobe this doesn't come cheap......



Whenever you buy security server, please e-mail me to tell me your experiences!



The actual JS to make such a filename is quite simple:



var user = TextField1.rawValue;

var today = new Date();

var filename = user + "-" + today.getFullYear() + today.getMonth() + today.getDate() + ".xml";

xfa.host.exportData(filename, 0);



best regards,

Håkon