What is the correct syntax to a PDF form file name in the subject line of an e-mail. Doc Javascript?

The name of the file is not part of any form field. The name of the file will be also unique whenever the form is used. I also want the name of the file that will be followed by the expression 'evidence' returned by the customer, as in:

Topic: Proof of Papa Murphys SALEM 8 - 30.pdf returned by the customer

Here is my existing script, but I need to know the syntax to get the PDF file name added in the subject line.

this.mailDoc ({bUI: true, cTo: "[email protected]", bassujetti: "proof returned by the customer", CMSG: "attached is the signed evidence.}) Please send to the graphics dept '});

I'm not very familiar with Javascript so have tried to reconstitute it.

Unfortunately, there is only so much you can google to get a working solution, I would suggest that you get at least a little familiar with JavaScript (there are a lot of good tutorials and books available). If you want an introduction to Acrobat JavaScript, have a look here: Beginning JavaScript for Adobe Acrobat

There is a property of the document object that returns the name of the file. You can read the property of Doc.documentFileName here: DC Acrobat SDK Documentation

In the simplest implementation, you can use this to enter the file name in the subject line:

this.mailDoc({bUI: true, cTo: "[email protected]", cSubject: this.documentFileName,  cMsg: "Attached is the signed proof. Please forward to the graphics dept"});

If you want to add more information that just the file name, you will need to assemble your subject line by using variable elements and string constants. Something like this works:

this.mailDoc({bUI: true, cTo: "[email protected]", cSubject: "The filename is " + this.documentFileName,  cMsg: "Attached is the signed proof. Please forward to the graphics dept"});

Tags: Acrobat

Similar Questions

  • PDF form not fill not to subject line in email when submitted to the Google Chrome browser

    Google Chrome doesn't seem to work, but all other browsers don't.  In the subject line Chrome and location complete the CC: and BCC: fields of email client and not the subject line?

    My current javascript is:

    If (email! = "")

    {

    this.mailDoc ({bUI:false, cTo:email, cSubject:location, CMSG: "Employee Completed appointment request attached"});

    }

    * I'm sure something can be added or attached to solve this problem, so it does not work in all browsers.  It is important for me that it works well in IE, Chrome, Firefox, and Safari.  The big four browsers anyway.

    Image of the sample question: basically the user is obliged to remove bcc:, and then click Send.    So no subject line.  Which means a manual operation at the location of the Inbox folder will be necessary, because I've installed rule to sort the Inbox based on the subject line.

    javascriptimageissue.png

    Yes I can offer link for download as... good suggestion... Thank you

  • Assembly of the subject line of an e-mail

    I am currently using Thunderbird for my emails and I'm trying to change the subject line of emails that I have received.  The problem is that I have to edit a new email and when it returns the e-mail to me, it changes the original sender's email address, it shows that it's me since I edited the enamel and the date of receipt.  I want to be able to change the subject line without changing anything else.  I don't want to label the email, I want to add something to the subject line.

    Is this possible with Windows Live Mail?  Otherwise, there is an e-mail program that will allow me to do this?  I am running Windows 7.

    I want to be able to change the subject line without changing anything else... Is this possible with Windows Live Mail?

    In Windows Live Mail, each message is a single text file. Without knowing why you might want to change the subject line of a message, it is difficult to suggest the best way to achieve this. Simply drag a message in the message list out on the desktop, where a new .eml file will be created with the subject as the file name line. This file can be opened with a text editor such as Notepad and changed at will. The modified file can then be slid into place in Windows Live Mail. This will leave the original message intact; If it is not the intention, the original message can be deleted.

    Please explain your reasons for wanting to change the subject line. There may be other ways to reach your goal.

  • What is the best way to consolidate e-mail messages in the e-mail program, before deleting?

    I have an iMac with a capacity to 1.11 - 679,49 GB available. With the software updated.

    Model name: I

    I have emails out of my different accounts in a "random" folder, but is not free up space. If I move an email in "Archives" and then it always remains in the e-mail account, apparently duplicate email in two places. "

    ERGO: the question is...

    What is the best way to consolidate e-mail messages in the e-mail program, before deleting?

    (I hope I've inserted which may be useful, but I'm not sure about that.)

    Thank you

    ilenefrombaltimore

    Archive messages or move them to some other local mailboxes or mailboxes on the server. Don't know what you are trying to do because it appears that you have 2/3 of your hard disk.

    Why do you think archiving emails in 2 places? Where are you trying to save space to?

  • What are the blue lines in the edition of flex?

    What are the blue lines in the edition of flex?

    They are markers of flex tempo... Info of tempo based inserted automatically embedded in the file. If you want to remove

    Edition->-> remove tempo tempo. -then reset flex markers

  • What is the life line and why am I charged $26.99 for something or other on my purchased iCloud account?

    What is the life line and why am I charged $26.99 for something or other on my purchased iCloud account?

    There is a life saver app in the App store (p 79) and several vital services on Google.   If you are unsure about a receipt, there's an invitation on the bottom to "report a problem".   Report your problem.

  • Is it possible to add the name to the subject line when you submit a pdf form

    Hello

    I created a form with Live Cycle and add a button which form submittingthe in PDF format. I was wondering is it possible to add the name to the subject line just after Hank, as seen in the image below?

    Concerning

    submittab.jpg

    It is easy enough to accomplish your needs using scripts on a regular button rather than the button send email.

    Look at this amazing example created by Paul who explains a number of ways to present data in form by e-mail.

    http://forums.Adobe.com/message/2109208#2109208

    Nith

  • What is the need for communication between Flex ActionScript to Javascript

    Hello

    Flex enabled communication of FLEX Mx:script of Java Script.

    Can someone could please tell me what is the need or any communication scenario Flex with Javascript

    Thanks in advance.

    Sorry but I can't resist not during a search here - it's mostly to let people write fragile dependent on JavaScript hacks and probably also to allow the use of lower AJAX XML-based protocols.  Also, to meet the requirements of managers of the fool, that providing for the use of old rather than letting technologies their engineers do their job.

    (In all honesty, there's probably some legitimate and even reliable uses, but if you ever need to search for such solutions, count your blessings).

  • Comma in the subject line after the merger of field

    I'm trying to create a fusion of our contact, followed a first name field comma and space, then the subject line.

    The kicker is, I don't want the comma (and space) will appear if we do not have a name associated with the e-mail address...  How can I do this?

    Here's what I have so far...

    < eloqua type = "emailfield" syntax = "FirstName" > name < / eloqua > line object here...

    I would like the result of the following:

    w/name:  Rob, line topic here...

    no name: Line of subject here...

    I tried to insert a comma and a space in various locations in the merge field code with no luck.

    Any help is appreciated.

    See you soon

    Hi, Rob. Nice name. Recently, I asked a similar question in this thread. Maybe some useful information for you.

  • Title of TextField to fill in the subject line of a submit button

    I need for the textfield title to assign automatically in the subject line of the Send button

    What is the code goes into sub =?

    var overtime

    void =

    ebody var

    Thank you

    Its probably too easy to use a normal button with the following

    var sSubject = CTitle.rawValue;
    
    var sBody = ;
    
    event.target.submitForm({
        cURL: "mailto: [email protected];[email protected],[email protected];&subject=" + sSubject + "&body=" + sBody,
        bEmpty: true,
        cSubmitAs: "PDF",
        cCharset: "utf-8"
    });
    

    use? for the first parameter and & for each subsequent in mailto

  • T - Bird does not check the subject line of an email. (v24.4.0).

    Hello
    When you compose an email that I chose to have Thunderbird 24.4.0. Search for the words misspelled with underlined time and spell check before you send him.
    During testing, I noticed that he points out and checked out everything except the line 'object '.
    Thunderbird will highlight misspelled words in the "Subject" line but not seeking a correct word before sending them as it does with the body of the email.
    You are aware of this and there's a difficulty on the way?

    Thank you very much
    -v-

    It is true that when you select Options/check spelling, the object is ignored, but if "The spelling as you type" is activated, subject misspelled words are underlined, and right click on the text proposed corrections. So, it works in a limited sense. This bug may be relevant.

  • When I enter the subject line in the forums, choice of dropsdown FF like google?

    As the subject lines 'knows' Firefox I sent in my yahoomail online and offer then the list drop-down list choice every time I get subject headers in the forums.

    For example, I could ask something on Gardenweb starting with "A".
    for example, say:
    Culture of Apple

    I could then see these choices fall, immediately at the entrance of "A."
    Attn: Dear bro
    strategies anti-cookies
    Attn: Chad re: our recent discussion of the finance

    This has been hard for ages, but never had the time to ask:
    What is everything? and what we call these drop-down lists?

    It reminds me of lists drop-down Google, but still more personal.

    On a tangent (talk way worst intrusion of privacy) more nauseating, it's yahoo mandating the entry of mobile numbers for each new registration by e-mail. It comes to my attention today, because of the distractions of RL. Why is everything always hardly get worse, rather than keep it simple and utilitarian? Not to mention the extreme MAC (I'm electrosensitive, so this is a sensitive topic for me)

    You can use ' history > clear recent history "to delete already backed up the data of the form.

    You turn this feature off in "Options > confidentiality" in order to prevent the registration of new data from Firefox.

  • How change/rename the subject line in an email I received without having to send it back to myself?

    I want to change the subject line information to make it easier to find in my files.

    Hi MadDawg

    1. you use webmail or an e-mail client program?

    2. what e-mail on the computer client program do you use? Is - this Windows Mail or Windows Live Mail?

    If you are using Windows mail, then you will need to either reply or forward to change the subject line of the e-mails received.

  • Add text to the subject line of message

    Hello

    I am trying to add a menuitem to the menu change Email which should add a text at the beginning of the subject line.  I could add a menuitem to Email edit menu and was able to view the subject of the message using the provided RIM sample. However the subject line of the message does not show the text, I added.

    What Miss me?  Any help would be appreciated.

    Code of the MenuItem class example

    public Object execute (object context) {}
    context object must be an electronic mail message
     
    If (instanceof Message context) {}
    Message message = context (Message);
    message.setSubject ("Test Message" + message.getSubject ());
    Dialog.Alert (message.getSubject ());
    context.setSubject ("Test Message" + message.getSubject ());
    }
    return the context;
    }

    Once you have completed your changes, call the Message.updateUi method to update the display with the modified message.

  • Maximum number of characters in the subject line?

    Hello

    What is the maximum length of characters allowed in 'object'?

    Also - anyone can guide the best character of subject line length. !!

    Thank you

    POOJA

    Hi Pooja,

    Maximum number of characters allowed is 250. Its best if we keep the subject line short and simple, try to keep the characters limited to 50 to 100.

    Hope this helps you.

Maybe you are looking for

  • Microsoft Office 2003 installation issue

    I tried to upgrade the old microsoft office to a newer Microsoft Office 2003 but I have expirience a mistake on him and he says of "ERROR 1913.Set to the top can not day file C:\Windows\win.ini.» Check that the file exists and that you have permissio

  • The Satellite A100 recovery disk + explorer.exe

    OK, I have 2 problems, 1. I did a virus scan and deleted TI explorer.exe I had a look in the folder with the 7z file manager and it wasn't there, also when I try the new task: explorer.exe it says it cannot be found. I can't explorer.exe from the rec

  • HP elite book 8770 laptop: HP do not have the parts to fix my computer

    HP had my laptop now for weeks now, I told them I need it within two weeks of work, they sent to Poland to be fixed, they now say that for the last week, they knew that they do not have the parts, they want to now send him to the United Kingdom, wher

  • Add more points to the belvedere

    The end of construction of a process to 6.6. with 50 points, Yes, I used all, now the client wants to add more points to monitor.  What is the process of upgrading 6.6 50 permits a 6.6 100 e/s I/O?  Thank you. Jim

  • error in windows update

    Dear Sir My windows is not install new updates I keep trying to install the manually but its does not work as well more my windows does not recognize my printer when I plug it into the USB port can you help me please