Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Rename the file when submitting a form

Avatar

Not applicable
Hi, I've to send the form in PDF format and I've got various functions to do it:

event.target.submitForm({cURL:"mailto:mysister@myhouse.com;nobody@home.com?subject=Submitted Form&body=Please find attached the completed form.",cSubmitAs:"PDF",cCharset:"utf-8"});



event.target.mailDoc(false,"", "", "", "Avaluació periode " + P1.Periode.rawValue + " de l'empleat " + P1.Empleat.rawValue , "A signar.");



but none of those let me change the name of the file that appears as attachment.



Could anybody help?



Thanks in advance

Esteve.
2 Replies

Avatar

Not applicable
Hello,



I'm also interested in something similar. I've created a form and it has an email submit button, I would like to know how to be able to rename the file when the user clicks submit. I have a field name called UserID, I would like to pass that into the subject of the email. Is this possible? Any ideas? Any help would be greatly appreciated.



Thanks,

~my