Submitting a form with customize subject line

Hi
I would like some help with Submitting a form via E-mail with a customize subject line. I want the subject like to be the First name of the person which they would have to enter in the form. Is this possible?
Thanks

Look at this previous thread:
http://forums.adobe.com/message/5615207#5615207
The script would look something like:
    //Place into a submit button     
     var cSubLine = this.getField("FirstName").value;       //Replace FirstName with the name of the field on your form
     this.mailForm({
     bUI: true,
     cTo: "[email protected]",
     cSubject: cSubLine,

Similar Messages

  • Saving Outlook eMail to a hard drive folder with long subject lines

    I'm using Outlook 2010 on a WIN7 machine. I drag and drop eMails to folders on my desktop quite often and in the past (earlier version
    of Outlook) I would receive a warning that the file did not copy if the subject line was too long. When I drag and drop eMails with long subject lines now there is no visual warning or indication that the operation failed. I am aware of the file name/path
    character count limitation. My issue is the lack of a warning when the operation fails requiring me to have to check the length of the subject line before the operation or double check if the file is present after the operation. Checking after the operation
    is quite exacerbating when you are copying 15 - 20 files at a time. Is there a patch or something that can be done about this?

    Hi,
    We can also consider to get support about macro from MSDN forum:
    http://social.msdn.microsoft.com/Forums/office/en-US/home?forum=outlookdev
    Regards,
    Melon Chen
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Submitting a form with an anchor tag

    How could I do this? I'm using a self submitting html form with JSP. I want an anchor tag to send some parameters to update the content of the page.

    Hi,
    You can use query string to pass the parameter values to the page.
    Ex:
    firstname and secondname are the two parameter values which you can pass it to the page.
    <ahref=http://website2.com/action?val1=' firstname' & val2='secondname'> Page2</a>
    if you click on the 'Page2' then those values are pass to the corresponding page
    Regards
    Reegan

  • PDF form not populating Subject line in email when submitted in Google Chrome browser

    Google Chrome doesn’t seem to work, but all other browser do.  In Chrome the subject line and location populate the CC: and BCC: fields in email client and not the subject line? 
    My current javascript is:
    if (email != "")
                    this.mailDoc({bUI:false,cTo:email,cSubject:location,cMsg:"Completed Employee Appointment Request Attached"});
    *I'm sure something can be added or fixed to resolve this so it will work in all browsers.  It is important to me that it work well in IE, Chrome, Firefox, and Safari.  The big four browsers anyways.
    Sample image of issue:  Basically user is forced to delete bcc: and then click send.    Thus no subject line.  Which means a manual move to location folder from inbox will be necessary, because I have rule setup to sort the inbox based on subject line.

    My final solution was to post the form and offer a link to dowload/install Adobe Reader and to also offer a link for Chrome users.
    * I will continue to look for a better solution, but at least the above is functioning.
    **I also set my bUI to true.
    Many thanks, Tim
    P.S.  I did report this to Google Chrome, heard nothing yet.  Also if you think of a better solution let me know.  I'm not familiar with javascript........I have a better understanding of HTML.......if this were HTML I would have done the below.
    <html>
    <body>
    <script type="text/javascript">
    alert("this is an alert");
    function go() {
                    alert("Hi");
                    var location = document.getElementById("location").value;
                    //console.println("location: = " + location);
                    var email = "";
                    email = "[email protected]";
                    if (location == "Select a location")
                                                    alert("You need to select a location first");
                    else if (location == "Other")
                                    email = "[email protected]";
                    if (email != "")
                                    //this.mailDoc({bUI:true,cTo:email,cSubject:location,cMsg:"Completed Employee Appointment Request Attached"});
                                                    window.open('mailto:' + email + '?subject=' + encodeURIComponent(location));
    </script>
                    This is a test
                    <input type="text" id="location" value="Select a location">
                    <input type="button" value="submit" onclick="go()">
    </body>
    </html>

  • Submitting a form with enter key causing strange problems

    I am having a very strange problem with a webapp I am currently developing. I am using JSF 1.2 along with Facelets and RichFaces. I have coded a workflow/wizard 4-step process, and on some pages I have 4 submit buttons that all call different actions on the page. The users thought it would be useful to have the enter key submit the form, so I followed some online resources to trap a keypress using javascript, looking for the enter keycode and calling document.getElementById("elementName").click(). This works fine most of the time. Sometimes, though, it seems as if an entire new session is being created, and odd behavior starts happening. For example, my page will only include 2 of the 4 facelets on the screen -or- I will get NullPointerExceptions for objects that I know have been created in the session bean I am currently using -or- I will get a duplicate form Id after trying to re-submit the page. Could the javascript click simulation not be submitting all of the form elements or is the enter key also acting like its default action (the form submission) in addition to the "click"? I'm really at my wit's end here (plus it's nearly 3 AM, that never helps things). All of the buttons being clicked are standard h:commandButtons. There is some setTimeout logic included to disable the buttons on the page to prevent double clicks (I cannot disable them onsubmit because disabled buttons don't pass the right values, perhaps that's causing it, but if so, clicking the buttons with the mouse would cause that issue too, right?)
    I am not posting the code (yet), but if anyone wants to take a look see and see if I am doing something really abhorrently wrong, I'm more than willing to, I'm just curious if anyone has had problems regarding javascript submission of forms via the click() method. Clicking the button does not exhibit this type of behavior. Just as a side note: I am doing different things with the enter key depending if a modal window is open (the enter key closes the modal if it's up, and if not, it submits the form via a button click).
    Any help is much appreciated, if anyone has any inkling about where I should start looking for answers it would be really helpful.
    Thank you.

    edfrost wrote:
    Could the javascript click simulation not be submitting all of the form elements or is the enter key also acting like its default action (the form submission) in addition to the "click"?My guess is the second of these. You need to suppress the event handling after programmatically clicking the button.

  • Import Text From Form Field into Subject Line of Email

    Hello,
    Is there a way to import text from a form field into the subject line of the email when sending back (attaching) the PDF form?  In other words, there is an "applicant name" and I would like that name to be the subject line of the email.
    I am using Adobe Acrobat X (10.1.7)
    If any one has aby guidance or resources online where I can locate this information I would greatly appreciate it!  I have been searching all day but have not found a solution yet. 
    Thanks!

    Thank you so much for the help.  For some reason I cannot get it to work though.   Now, when I hit the submit button it does not do anything.
    Previously, I had the following code under
    ACTIONS>Mouse Up>Submit a Form
    mailto:[email protected]?subject=Employee Application
    I removed the above mailto URL and put in your code as a Javascript function. I made sure that my field name matched the name in quotes within the code.
    I used the following:
    var subject = getField("lastname").value 
    this.mailDoc({
    bUI: false,
    cTo: "[email protected]",
    cSubject: subject,
    cMsg: "Type message here"
    Do you see anything obvious that I am doing wrong?
    Many thanks!

  • Auto complete in subject line of email in google no longer works. Gmail used to work with autocomplete subject line and no longer responds.

    Somewhere in the updates of Google and Firefox the subject matter history does not remember the common subjects that I use everyday. The auto feature saved me typing the subject line every time I send repetitive messages and mail to different groups. No forums online seem to have an answer but many have the problem. I don't know if it is a Google issue or a browser issue.

    Perform the suggestions mentioned in the following articles:
    * [[Form autocomplete entries are not saved]]
    * [[Form autocomplete]]
    Check and tell if its working.

  • Submiting HTML Forms with JavaFX Webview

    I've long been searching for a good web robot framework. And I also need a gui for my robot.
    So w/ the advent of JAVAFX Webengine it seemed my needs have been met finally. Specially because on the webview tutorial here , Alla Redko says: "+It supports user interaction such as navigating links *and submitting HTML forms*+".
    But after looking at the api it doesn't seem that webengine supports submiting forms, only loading pages w/ the load() method. I guess I could populate the form fields and submit them w/ executeScript() but that's just sloppy.
    Is there a way to actually submit forms w/ webengine? Are there plans to implement this feature, analogous to the load() method?
    Thanks,
    JC

    Yea, as I mentioned in the first post, I could do all that w/ JS but it's just sloppy, since I'm using Java language, not JS.
    The finding certain fields part is easy w/ the Document model and xpath, it's the populating the fields and submiting the form along w/ its hidden input fields that is the missing part.
    Does anyone know if these things are planned for the future of Webview/Webengine?You can already do this in Java today using the existing APIs if you so wished.
    import javafx.application.Application;
    import javafx.beans.property.*;
    import javafx.beans.value.*;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.scene.Scene;
    import javafx.scene.control.*;
    import javafx.scene.layout.*;
    import javafx.scene.web.*;
    import javafx.stage.Stage;
    import org.w3c.dom.*;
    import org.w3c.dom.html.*;
    public class WebViewFormPost extends Application {
      public static void main(String[] args) { launch(args); }
      @Override public void start(Stage stage) {
        final TextField fxUsername = new TextField();
        final TextField fxPassword = new PasswordField();
        final BooleanProperty loginAttempted = new SimpleBooleanProperty(false);
        final WebView webView = new WebView();
        final WebEngine engine = webView.getEngine();
        engine.documentProperty().addListener(new ChangeListener<Document>() {
          @Override public void changed(ObservableValue<? extends Document> ov, Document oldDoc, Document doc) {
            if (doc != null && !loginAttempted.get()) {
              if (doc.getElementsByTagName("form").getLength() > 0) {
                HTMLFormElement form = (HTMLFormElement) doc.getElementsByTagName("form").item(0);
                if ("/oam/server/sso/auth_cred_submit".equals(form.getAttribute("action"))) {
                  HTMLInputElement username = null;
                  HTMLInputElement password = null;
                  NodeList nodes = form.getElementsByTagName("input");
                  for (int i = 0; i < nodes.getLength(); i++) {
                    HTMLInputElement input = (HTMLInputElement) nodes.item(i);
                    switch (input.getName()) {
                      case "ssousername":
                        username = input;
                        break;
                      case "password":
                        password = input;
                        break;
                  if (username != null && password != null) {
                    loginAttempted.set(true);
                    username.setValue(fxUsername.getText());
                    password.setValue(fxPassword.getText());
                    form.submit();
                    System.out.println("Submitted login for user: " + username);
        engine.getLoadWorker().exceptionProperty().addListener(new ChangeListener<Throwable>() {
          @Override public void changed(ObservableValue<? extends Throwable> ov, Throwable oldException, Throwable exception) {
            System.out.println("Load Exception: " + exception);
        GridPane inputGrid = new GridPane();
        inputGrid.setHgap(10);
        inputGrid.setVgap(10);
        inputGrid.addRow(0, new Label("Username: "), fxUsername);
        inputGrid.addRow(0, new Label("Password: "), fxPassword);
        Button fxLoginButton = new Button("Login to Oracle Forums");
        fxLoginButton.setOnAction(new EventHandler<ActionEvent>() {
          @Override public void handle(ActionEvent t) {
            if (notEmpty(fxPassword.getText()) && notEmpty(fxPassword.getText())) {
              loginAttempted.set(false);
              engine.load("https://forums.oracle.com/forums/login!withRedirect.jspa");
        final VBox layout = new VBox(10);
        layout.setStyle("-fx-background-color: cornsilk; -fx-padding: 10;");
        layout.getChildren().addAll(
          new Label("Enter your Oracle Web Account credentials"),
          inputGrid,
          fxLoginButton,
          webView
        stage.setScene(new Scene(layout));
        stage.show();
      private boolean notEmpty(String s) {
        return s != null && !"".equals(s);
    }Personally, I think using JavaScript via engine.executeScript calls in combination with jquery might be a less messy solution (as I don't like writing against the raw dom apis), but I understand that there are valid reasons why you might prefer to use a Java only solution.
    https://gist.github.com/jewelsea/3077942 "Embeds jQuery in a document loaded into a WebView."

  • Wrong values submitted when submitting a form with javascript

    Hi guys, I know this aint a struts forum, but I did not know where else to go. So here goes..
    I have the following code in my jsp
    <logic:iterate id="ex" name="myForm" property="users">
    <html:multibox property="deleteUsers">
    <bean:write name="ex" property="userId"/>
    </html:multibox>
    </logic:iterate>
    I have about 10 users of which 5 have already been marked for deletion from another action. So basically, the above tag renders 10 rows with a checkbox in the beginning to select users to delete. Also 5 of them have been checked already, I mean when the form is loaded. So checkboxes 1, 4, 5, 8, 10 have already been checked. Now I have a link on which goes like this
    Select None. On this I call a javascript which does the following
    function uncheckAll() {
    for (i = 0; i < 10; i++) {
    document.myForm.deleteUsers.checked = false;
    This unchecks all my checkboxes.
    Now comes the problem. I am submitting the form using a javascript which is invoked on clicking on the submit link using document.myForm.submit(); The problem is the deleteUsers property in myForm still retains the old values. If the checkboxes are unchecked no values should be submitted for this and the deleteUsers array should be empty. Can anyone help me out on this.
    Thanks.

    Checkboxes only submit a value when they are "on"
    They submit nothing if they are not selected.
    The problem comes - do you interpret no checkbox values as "clear all values" or "leave the values alone"? Struts assumes the latter.
    Your form is probably being kept in session?
    Try implementing the reset() method of your action form and set its property to be equivalent to no checkboxes selected.

  • Mail deletes / removes drafts when I try to save multiple messages with same subject line.

    Hi,
    Running 10.7.5, Mail version 5.3, I find that I cannot save multiple messages with the same subject line when I want to store them for sending to different people later. It automatically deletes the older message and only saves the new one.
    Any idea/help? Can't find it online or using Macs's Help program. They are NOT being stored on my mail server, just checked.
    Thanks!

    I am experiencing exactly the same problem. Mail will not keep multiple email drafts with the same subject line, although they are addressed to different people. At one point, I had drafted and saved a dozen or so such messages intending to send them later only to discover that Mail had deleted all of them but one. Have you received any help or guidance on this? I'm baffled. This did not happen with previous Mail versions.

  • How do i read form data into subject lines of email?

    I'm having a problem pulling form data and putting it in the subject line of my email.
    "mailto:[email protected]?subject=Formform form+ F_Name.rawValue + L_Name.rawValue";
    I thought this would read text fields from the form and print them in my subject line. Instead it tprints it without the data.
    I was wondering if someone could point me in the right directon on what i am doing wrong.
    Button2.event__click.submit.target  "mailto:[email protected]?subject=Formform form" + F_Name.rawValue + L_Name.rawValue;
    Button2.execEvent("click");
    Any help would be appreciated.
    jj
    Also if anyone would happen to know if there is a way to bypass the two email prompts and choose to directly send it using the users local email client would help or maybe its impossible.

    Button2.event__click.submit.target ="mailto:xxxxx.com?subject=FORM Form Form for " + topmostSubform.firstName.value;
    Can i use rawValue or value like this? Right after i put anything after those quotation marks that aren't more quotatin marks my button stops workin.

  • Email response with changed subject line, disappears.

    I "replied" to an email, but changed the subject line and then entered "send". The email disappeared. It did not appear in the sent folder. Was this because I changed the subject line?

    Welcome to  Discussions!
    Check your Junk folder. Something about the email is probably making the junk filter think it's just junk. If it's in there, you can mark it 'not junk' to help the filter learn it's a valid email.

  • Trouble submitting PDF form with Web Mail

    Hello,
    I have a fillable PDF form that I'm trying to submit. When I submit the form through an email client (Outlook, Mail, etc.) it works perfectly. When I try to submit using the Webmail option, I get this message: "An unknown error has occurred while uploading the attachment. If you are not sure how to proceed further, you can save your form and return it manually using your Internet mail service."
    I've checked the file thoroughly and everything looks correct. I'm perplexed as to why it submits just fine through an email client, but won't submit via Webmail. I've tried on a Mac and a PC and I've tried using a Yahoo account and a Gmail account with the same results. Any ideas?
    Thanks!
    Kate

    I'm using Acrobat XI Pro. I don't have Reader installed on my laptop. The form is for a client who sends it out to patients to fill out, so I need it work with both mail clients and web mail. Is there a way to do that? I don't think changing that preference in my Acrobat will solve the problem, as that will just effect my Acrobat. Is there a setting I can apply to the actual document? Thank you for your response!

  • Submiting a form with variables packed into an associative array

    I have a complex form created in flash that submits to a
    shopping cart. I was having trouble getting the variables in the
    right format for the shopping cart to accept.
    So I created a bridging script in php that fills in the
    hidden fields of a form then uses javascript to submit it to the
    cart. This works but I would like to submit the variables directly
    to the cart and eliminate the need for a bridge.
    At the moment I am simply using
    getURL("bridge.php", "_self", "POST");
    to POST the variables to the bridge.
    The bridge code is
    <?php
    $id[txt_1] = "$colortext";
    $id[txt_2] = "$xheight";
    $id[txt_3] = "$xwidth";
    $id[txt_4] = "$nopanels";
    $id[txt_5] = "$shutterstyle";
    $id[txt_6] = "$squarearea";
    $id[txt_7] = "$finish";
    $id[txt_8] = "$bifoldoption";
    $id[txt_9] = "$slidingoption";
    $id[txt_10] = "$hingedoption";
    $id[txt_11] = "$totalprice";
    $id[txt_12] = "$colorcode";
    $products_id = "28";
    ?>
    <form
    action="product_info.php?products_id=28&action=add_product"
    method="post" name="MyForm" target="_self">
    <input type="submit" name="Submit" value="Submit">
    <input name="id[txt_1]" type="hidden" value="<?php
    print($id[txt_1]); ?>">
    <input name="id[txt_2]" type="hidden" value="<?php
    print($id[txt_2]); ?>">
    <input name="id[txt_3]" type="hidden" value="<?php
    print($id[txt_3]); ?>">
    <input name="id[txt_4]" type="hidden" value="<?php
    print($id[txt_4]); ?>">
    <input name="id[txt_5]" type="hidden" value="<?php
    print($id[txt_5]); ?>">
    <input name="id[txt_7]" type="hidden" value="<?php
    print($id[txt_7]); ?>">
    <input name="id[txt_6]" type="hidden" value="<?php
    print($id[txt_6]); ?>">
    <input name="id[txt_8]" type="hidden" value="<?php
    print($id[txt_8]); ?>">
    <input name="id[txt_9]" type="hidden" value="<?php
    print($id[txt_9]); ?>">
    <input name="id[txt_10]" type="hidden" value="<?php
    print($id[txt_10]); ?>">
    <input name="id[txt_11]" type="hidden" value="<?php
    print($id[txt_11]); ?>">
    <input name="id[txt_12]" type="hidden" value="<?php
    print($id[txt_12]); ?>">
    <input name="products_id" type="hidden" value="28">
    </form>
    <script type="text/javascript"
    language="JavaScript"><!--
    document.MyForm.submit();
    //--></script>
    I am trying to create in flash 8 the equivalent of the above
    form using the function below.
    function submitvars() {
    var id: Array = new Array();
    id.txt_1 = colortext;
    id.txt_2 = xheight;
    id.txt_3 = xwidth;
    id.txt_4 = nopanels;
    id.txt_5 = shutterstyle;
    id.txt_6 = squarearea;
    id.txt_7 = finish;
    id.txt_8 = bifoldoption;
    id.txt_9 = slidingoption;
    id.txt_10 = hingedoption;
    id.txt_11 = totalprice;
    id.txt_12 = colorcode;
    var myvar:LoadVars = new LoadVars();
    myvar.id = id;
    myvar.products_id = '28';
    myvar.send("product_info.php?products_id=28&action=add_product",
    "_self", "POST");
    So far the variable products_id = ‘28’ transfers
    over to the cart fine but not the variables in the ‘id’
    array

    You're welcome.
    I've never used register globals, couldn't figure that out,
    thanks for explaining.
    The other way to do it if you want to send an array of simple
    data (usually all of one data type like string or number) is to use
    array.join("delimiter_sequence"); in flash. You can then assign it
    to a single property of your loadvars (e.g. 'id') and use explode
    in php with the same delimiter to recreate an array. This does not
    give you an associative array though, just a regular numeric
    indexed one.
    To send complex data like arrays and objects, you can use
    other encoding techniques. You can even use json: json.org has a
    json class(es) for flash and php 5 has json encoding/decoding
    support for example.
    Another way is to use amfphp and remoting, which does all the
    work for you. And of course, you have XML support as well at both
    ends, so you can always represent complex data in XML if you
    prefer. You may want to investigate these or other methods on
    future occasions.

  • Submitting multiple forms with one Submit button?

    I'm working to create a web app for the iphone and am using
    an apple developed css within an html page. In doing so I have
    created three forms within the single page and would like to submit
    them simultaneously with one submit. I've looked and tried a few
    javascripts but nothing has worked thus far. All three forms call
    the same action (php).
    Is this possible using js or another function?

    .oO(iRyFlash)
    >I'm working to create a web app for the iphone and am
    using an apple developed
    >css within an html page. In doing so I have created three
    forms within the
    >single page and would like to submit them simultaneously
    with one submit. I've
    >looked and tried a few javascripts but nothing has worked
    thus far. All three
    >forms call the same action (php).
    >
    > Is this possible using js or another function?
    Make it a single form.
    Micha

Maybe you are looking for

  • Unable to sending a mail using odisend mail

    Hi, i have a need to send a mail using odi send mail, i am using gmail server getting to send a mail, but it getting error like this com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first. d19sm1563829ibh.8      at c

  • How do I view pdfs in Safari for Windows?

    Have to use Windows 7 at work. Fortunately, I can at least use Safari as my browser. Unfortunately, I can't view pdfs in Safari for Windows but I can with FireFox and IE. Any way to resolve?

  • When my computer starts up it says hard disk error g6-1b87cl

    when my husband was updating my computer he turned it off n now when i turn my computer back on it says hard disk error..... i need help..... ne ways computer is a pavilion g6-1b87cl notebook pc its windows7 intel pentium inside

  • I have a eMac and i was wondering if its possible to upgrade the processor?

    I have an eMac and it is very slow so I was looking at upgrading some of the parts. I know I can fit in new RAM but is it possible to get and install a new faster processor?

  • Facebook AIR permissions

    I have an AIR app using GraphAPI_Desktop_1_8_1.swc to access FacebookDesktop. I call FacebookDesktop.login eg: FacebookDesktop.login(handleLogin);and all is good, the login window opens and the user logs in. But! when I add extra permission, for exam