Email attachment filename from field?
Posted: Wed Jan 23, 2013 10:23 pm
Hello,
I have a form on which I've added a custom button to call a report. The JavaScript looks like this:
Is it possible to insert some JavaScript so that I can format the filename to be something like:
Receipt-342.pdf
I don't believe hash variables are supported here, but something along the lines of this would seem appropriate.
Thanks in advance
I have a form on which I've added a custom button to call a report. The JavaScript looks like this:
Code: Select all
emailIt("receiptrpt","","info@domain.co.nz","Subject","Body of message","Receipt.pdf",true,"PDF")
Receipt-342.pdf
I don't believe hash variables are supported here, but something along the lines of this would seem appropriate.
Code: Select all
emailIt("receiptrpt","","info@domain.co.nz","Subject","Body of message","Receipt'#id#'.pdf",true,"PDF")