Insert data from a field into the subject of an email generated form a form

Hi,
Is there a way to have the contents of a field come up in the subject of an email that is made when a submit by email button is clicked.
The data we want is from a date field for a 'week commencing'.
We have a text string that is entered on the button's properties - email subject, but we'd like to add the contents of a field on the form onto this.
any ideas?
thanks,
declan.

Try this code in the click-event of the mail-button (you will have to adjust it of course):
var anrede;
if (xfa.form.Formular.Beratungsprotokoll.Kunde.Anrede.rawValue == "Herr") {
anrede = "Sehr geehrter Herr "; }
else {
anrede = "Sehr geehrter Frau "; }
var mailText = anrede + xfa.form.Formular.Beratungsprotokoll.Kunde.Name.rawValue +
"\nPlease print this form and mail it to me!" +
"\n\nTo speed up processing you can also click on the button 'ok'. " +
"This will generate an e-mail. Please send this e-mail to me." +
"\n\nThank you" +
"\nYour agent";
event.target.submitForm({cURL:"mailto:" +
Formular.Beratungsprotokoll.Kunde.EMail.rawValue +
"?subject=consulting minutes&body=" + mailText,
cSubmitAs:"PDF",cCharset:"utf-8"});

Similar Messages

  • Javascript to pull a PDF field into the Subject line of email?

    I've created a fillable PDF form using Pro X.  I'd like to program the Submit button so that once in the email portion, the subject line would automatically pull 3 specific fields from the PDF file.
    Example:  After hitting "Submit"....once in the email, I'd like the Date, Vendor Name, and PO # from the PDF form to automatically pull into the Subject line.
    I have to PDF the complete document and go through the Desktop Email Application on my PC.
    Thank you!

    Hello Everyone,
    I am having the same issue as tlg814 with needing three fields to pull into the subject, and I followed the blue print of the code as well, but I am only getting one field to populate in the subject line.  I am using Acrobat XI. Here is my code:
    Mouse up> Run a JavaScript
    var parts = getField("SR#", "Urgency", "Ship To").value
    this.mailDoc({
    cTo: "[email protected]",
    cCc: "[email protected]",
    cSubject: parts,
    cMsg: "Please create a Parts Request for the items in this email. Thanks"
    Any thoughts as to why it is not pulling all three fields?
    Thanks

  • Add text field into the 'subject' of a email submit button

    I have a form where the client will enter their name, organisation, query and details of their query into text fields.  I would like the text in the 'query' field to be added to the 'subject' of the email submit button.  This will identify different queries submitted by other clients before opening up the completed pdf form attachment.

    Hi,
    if you use ES3 or ES4 you can use my macro to create email scripts with values from form fields.
    http://thelivecycle.blogspot.de/2012/05/mailto-maker-marco-v1.html

  • How can I include the data from a field in the subject of the notification email?

    Instead of having a static subject line for each form response, I would like to have something like:
    Form Response Received from <<Name>>
    That way, each email would have a unique subject line and make it easier to use conversation view in my email.
    Thanks for any help you can provide.  I searched the documentation and couldn't find the answer.

    There is not a way to do that within the automated system-wide e-mailing of responses from the FormsCentral application.
    Doing a search in your e-mail, or setting up e-mail filters to separate/segregate e-mails into different folders (based on content or selections in the submissions) is a good way to extend functionality outside of FormsCentral.
    Brian

  • *Urgent*How to insert data from MS SQL to the table that create at the adobe form?

    Hi,
    I'm using Adobe life cycle designer 8 to do my interactive form. I would like to ask how to insert data from MS SQL to the table that i have created in my adobe interactive form?
    I really need the information ASAP as i need to hand in my project by next week... i really appreciate any one who reply this post.
    Thanks

    Tou need to do a couple of things
    1. On the Essbase server, set up an odbc system connection to your MySQL database
    2. In the load rule , go to the file menu and select open SQL data source and in the data source put in your SQL statement . A couple of hints. Where it says Select, don't put in the word select and where it say from don't put in from. The system adds them for you. The easiest way ti enter a SQL statement is to do it all in the select area So if your SQL would normanlly say select * from mytable just enter the code as * from mytable in the select area
    The click ol/retrieve and enter in your connection info. Itshould bring data back into the load rule. Save the load rule and use it

  • How do I insert pages from one PDF into the current PDF in Acrobat X?

    I just upgraded from Acrobat 8 to Acrobat X.
    How do I insert pages from one PDF into the current PDF in Acrobat X pro?  I was able to do this from the Edit menu in Acrobat 8 pro.  Appreciate instructions.  Thanks.

    Hi chemadberk,
    In my Acrobat 8 Pro, Insert Pages is under the Document menu but anyway...
    In Acrobat X, click on the Tools pane(upper right side) then navigate to Pages- the Insert Pages commands are located there.
    Hope this helps,
    Dimitri
    [signature deleted by host]

  • Cannot insert data from local database into remote database using subquery

    I have two oracle databases on different host.
    One is version 8i in Host A and the other is 9i in Host B.
    First, I try to create a dblink in 8i to 9i, but it fail.
    Then, I create a dblink in 9i to 8i, it success.
    I have already tried some select statement in 9i to view the table in 8i, which is success and that means the dblink is really work.
    The sql statement is like
    Select * from table1@hostA
    Then I have tried running some INSERT statement in 9i, which is copy data from table 1 in 8i to table 2 in 8i, both tables are in 8i. The sql statement is like
    Insert INTO table2@hostA(field1, field2)
    select field1, field2
    from table1@hostA
    This also success.
    Also, I have tried to use the following INSERT statement
    Insert INTO table2@hostA(field1, field2) values ('XXX', 'XXX)
    This also success.
    However, when I try to insert data from table in 9i to table in 8i using the following INSERT statement, it failed.
    Insert INTO table2@hostA(field1, field2)
    select field1, field2
    from table1
    The statement can execute, but all the rows inserted with every field value equal to NULL. I have tried to run the select part, it can return the data. But when I run the INSERT statement above, the value inserted into table2 is all equal to NULL.
    One more thing, I discover that the databases are using different NLS_CHARACTERSET
    9i is AL32UTF8
    8i is WE8ISO8859P1
    Is this relevant to my problem?
    Does anyone know the solution about this problem?
    Thanks!!

    How is the best way to do this ?How much are you planning to send?
    You can use COPY command. Ensure that you have valid database link between two databases.
    Available options are:
    create - creates a new table. errors out if the destination table exists.
    replace - drop the destination table and re-creates with data.
    insert - inserts data if the destination table exists.
    append– appends data into an existing table.
    use set arraysize 5000 -The arraysize specifies the number of rows that SQL*Plus will retrieve from the database at one time.
    copy from scott/tiger@ORCL to scott/tiger@ORCL92 create new_emp using select * from emp;

  • Inserting date from a jsp into sql server 2005 database

    Dear Friends.,
    i have a jsp page, in that there is a form with various user input fields. in that one field is date field. i tried to insert the date field into the sql server 2005 database. but it is not getting inserted into the database.
    when i tried by inserting one field to database, it is getting inserted. for all the fields its works fine, except the date field.
    i need hint or code to insert the date get from the jsp page to database.
    i am using a servlet to do all database related things. i.e making connections, executing prepared statement queries
    thanks
    sekar.

    The variable needs to be outside of the string to be recognized as a variable. You need to remove the variable from the string, then concatinate it onto the string (and concatinate any remaining string parts - the closing paren). For example:
    stmt.executeUpdate("INSERT INTO table VALUES ('test', " + companyID + ")");
    Hope that's clear enough and helps. Good luck on your thesis!
    jim

  • Inserting data from one table into another table using PL/SQL

    HI,
    I am trying to insert values from one table into another using PL procedure, the values I want to retrieve from the table riverside1 are charac_id and charac_type and insert these values into another table called riverside2 , the stored procedure zorgs_gorfs(x,y) accepts two parameters which are 2 charac_id's of d characters in riverside1 then using insert statements inserts these characters from riverside1 into riverside2.
    CREATE OR REPLACE PROCEDURE zorgs_gorfs(x IN NUMBER, y IN NUMBER) AS
         BEGIN
              INSERT INTO riverside2
                   (charac_id)
              VALUES
                   (x);
    INSERT INTO riverside2
                   (charac_id)
              VALUES
                   (y);
          END zorgs_gorfs;
    /This works but the problem im having is that when I also try to insert the charac_type as well as the charac_id it doesnt work below is the code:
    CREATE OR REPLACE PROCEDURE zorgs_gorfs(x IN NUMBER, y IN NUMBER) AS
         BEGIN
              INSERT INTO riverside2
                   (charac_id,charac_tye)
              VALUES
                   (Select
                        charac_id,
                        charc_type
                   FROM
                        riverside1
                   WHERE
                        charac_id = x);
          END zorgs_gorfs;
    /can someone kindly sort me out

    modify this sql
    INSERT INTO riverside2
                   (charac_id,charac_tye)
              VALUES
                   (Select
                        charac_id,
                        charc_type
                   FROM
                        riverside1
                   WHERE
                        charac_id = x);as
    INSERT INTO riverside2
                   (charac_id,charac_tye)
              VALUES
                   (Select
                        charac_id,
                        charc_type
                   FROM
                        riverside1
                   WHERE
                        charac_id in ( x,y));But my suggestion would be consider revising your approach. It does not look that good.
    Thanks,
    karthick.

  • Need to add senders email address into the subject header of my PHP form (somehow)

    Hello one and all,
    I have a PHP form which is working fine and sends our support team an email with the subject header 'Support'.
    I have been asked to fix this form to include the senders email address into the Subject header so that the support team can filter them easier and reply quicker.
    Any help would be very much appreciated indeed. The form code is below, let me know if you need the whole page.
    Thanks in advance,
    Bradley
    My current form PHP part looks like this: (and the HTML part is below in blue)
    <?php
        if($_GET["action"] == "email")
            $msg = "The following person need support:\n\n";
            $msg = $msg . "First Name: " . $_POST["FirstName"] . " " . $_POST["LastName"] . "\n";
            $msg = $msg . "Tel: " . $_POST["Tel"] . "\n";
            $msg = $msg . "Email: " . $_POST["FROM"] . "\n";
            $msg = $msg . "Support: " . $_POST["Support"] . "\n";
            $msg = $msg . "Model: " . $_POST["Model"] . "\n";
            $msg = $msg . "Comments: " . $_POST["Comments"] . "\n";
            $to ="[email protected]";
            $subject = "Support";
            $from = "From: " . $_POST["FROM"];
            mail($to, $subject, $msg, $emailFrom, $from);
            header("Location:support2.php");
    ?>
    and the HTML part of the fom is like this:
    <form id="form1" name="form1" method="post" action="support.php?action=email">
      <table width="700" border="0" cellspacing="10" cellpadding="10">
        <tr>
          <td valign="middle" class="formtext">*First name:</td>
          <td width="455" valign="middle"><label>
            <input name="FirstName" type="text" class="form-textbox" id="FirstName" />
          </label></td>
        </tr>
        <tr>
          <td valign="middle" class="formtext">*Last name:</td>
          <td valign="middle"><input name="LastName" type="text" class="form-textbox" id="LastName" /></td>
        </tr>
        <tr>
          <td valign="middle" class="formtext">*Email:</td>
          <td valign="middle"><input name="FROM" type="text" class="form-textbox" id="FROM" /></td>
        </tr>
        <tr>
          <td valign="middle" class="formtext">*Telephone:</td>
          <td valign="middle"><input name="Tel" type="text" class="form-textbox" id="Tel" /></td>
        </tr>
        <tr>
          <td valign="middle" class="formtext"> </td>
          <td valign="middle"> </td>
        </tr>
        <tr>
          <td valign="middle" class="formtext">*Support required:</td>
          <td valign="middle"><label>
            <select name="Support" class="form-dropdown" id="Support">
              <option selected="selected">Please select...</option>
              <option value="Connection Issues">Connection Issues</option>
              <option value="Technical Issues">Technical Issues</option>
              <option value="Furniture Faults">Furniture Faults</option>
              <option value="Other">Other</option>
            </select>
          </label></td>
        </tr>
        <tr>
          <td valign="middle" class="formtext">Chair model:</td>
          <td valign="middle"><input name="Model" type="text" class="form-textbox" id="Model" /></td>
        </tr>
        <tr>
          <td valign="middle" class="formtext">*Please describe your issue:</td>
          <td valign="middle"><textarea name="Comments" rows="5" class="form-textarea" id="Comments"></textarea></td>
        </tr>
        <tr>
          <td valign="middle" class="maintext"> </td>
          <td valign="middle" class="maintext"></td>
        </tr>
        <tr>
          <td valign="middle"> </td>
          <td valign="middle"><label>
            <input name="Submit" type="submit" class="form-submit-button" value="Submit" />
          </label></td>
        </tr>
      </table>
      </form>

    MurraySummers you sir, are an absolute legend! This worked perfect straight off the bat!
    I really apreciate your lightning fast reply!
    Thanks again.
    Bradley

  • Is there a way to add the information from a custom field into the subject line of notification email

    I have a field in my form that I would like to add to the Subject line in the email notification form. Is there a way to pull that out of the form and add it?

    Try with t.code AUT10 -Audit trail using which you can see the change histories.
    Regards,

  • Insert data from two rows into a single row in a new table

    Hi
    i have a table like the following
    Deptno Dname      Salary
    10     Computer     2000
    10     Computer     4000
    10     Computer     3000
    10     Science     6000
    10     Science 1000
    10     Science     4000
    10     Science     10000
    I want to insert data into a new table like the following
    Deptno MaxSalCom     Minsalcom MinSalSci     MaxSaSci
    10     2000     4000      1000     10000
    Deptno--As in Table1
    MaxSalCom--Maximum salary for Dname " Computer"
    Minsalcom--Minimum salary for Dname " Computer"
    MaxSalSci--Maximum salary for Dname " Science"
    MinsalSci--Minimum salary for Dname " Science"
    Please help me how to go about it

    with data as
    (select 10 dno, 'Computer' dname, 2000 sal FROM dual
    union all
    select 10, 'Computer', 4000 FROM dual
    union all
    select 10, 'Computer', 3000 FROM dual
    UNION all
    select 10, 'Science', 6000 FROM dual
    union all
    select 10, 'Science', 1000 FROM dual
    union all
    select 10, 'Science', 4000 FROM dual
    union all
    select 10, 'Science', 10000 FROM dual
    select dno, min(decode(dname,'Computer',sal)) min_sal_comp , max(decode(dname,'Computer',sal)) max_sal_comp,
    min(decode(dname,'Science',sal))min_sal_sci , max(decode(dname,'Science',sal)) max_sal_sci
    from data
    group by dno;

  • Insert data from a table into 5 different tables

    My application has a data block than display information from another table. From this data block, the user has the option to select the records for upload. The information in the data block is used to insert data into 5 different tables. So if any exception occurs while inserting, the whole process should be rollback, but before this happen a record is inserting in a failed table indicated the reason of the failed.
    For this process I use the following commands:
    1.     sp_name := Get_Application_Property(SAVEPOINT_NAME);
    2.     INSERT DDL
    3.     INSERT DDL
    4.     INSERT DDL
    5.     INSERT DDL
    6.     INSERT DDL
    7.     If Other Exception then ISSUE_ROLLBACK(sp_name) Otherwise FORMS_DDL ('commit')
    The problem the previous insert(s) rollback
    Thanks,

    Hi,
    If you are using FORMS_DDL built-in to insert the data, then after each FORMS_DDL statement, you have to check the values of FORM_SUCCESS or FORM_FAILURE built-ins.
    FORMS_DDL('<insert_statement_1>');
    IF FORM_FAILURE THEN
    <the statement fails. so have to be rollbacked>
    END IF;
    FORMS_DDL('<insert_statement_2>');
    IF FORM_FAILURE THEN
    <the statement fails. so have to be rollbacked>
    END IF;Hope this helps.
    Regards,
    Manu.
    If my response or the response of another was helpful or Correct, please mark it accordingly

  • To pull data from avarchar field into a date field in another table

    Hi
    I pulled some records into a table from a remote server by means of a database link and one of the field which is varchar(30) needs to be pulled into other database which has a date column.
    so the varchar field needs to be converted into the date column so that the data can be loaded into that table.

    Now, we are talking. See, all you had to give us was the error first. Anyway, I think your 'format' coming in is different from the date 'format' you are using to do the 'to_date' function.
    Anyway, please show us what the incoming data looks like and we might be able to suggest what is the 'to_date' format you have to use (for eg: 'yyyy-mm-dd' or 'yyyy mm dd HH:mi:ssss').

  • How to insert data from a table into itself if they don't already exist meeting a certain condition

    First, let me apologize as I did not write/design this mess, just inherited this terrible design and legacy application!
    I have table of companies and a table of suppliers with various attributes and of them being a bit column of is_public.  The public suppliers then need to be inserted into the table as suppliers for the other suppliers.
    As an example, in the company table company 'PUB01' is flagged as a public supplier (Company.IS_PUBLIC_SUPPLIER = 1).  Therefore in the Suppliers table I need to insert a row for each each of PUB01's suppliers in that same table to all the other suppliers
    in that table if they do not already exist as follows:
    Here is a sample of the table structure:
    CREATE TABLE [dbo].[COMPANY](
    [COMPANY_ID] [nvarchar](15) NOT NULL,
    [COMPANY_NAME] [nvarchar](100) NOT NULL,
    [IS_PUBLIC_SUPPLIER] bit NOT NULL,
     CONSTRAINT [PK_COMPANIES] PRIMARY KEY CLUSTERED 
    [COMPANY_ID] ASC
    ) ON [PRIMARY]
    GO
    CREATE TABLE [dbo].[SUPPLIERS](
    [SUPPLIER_ID] [int] IDENTITY(1,1) NOT NULL,
    [COMPANY_ID] [nvarchar](15) NOT NULL,
    [SUPPLIER_NAME] [nvarchar](100) NOT NULL,
    [PUBLIC_SUPPLIER_ID] [int] NULL,
     CONSTRAINT [PK_SUPPLIER_MASTER] PRIMARY KEY CLUSTERED 
    [SUPPLIER_ID] ASC
    GO
    Thanks!

    Thanks Visakh!  Will that work if some have already been inserted previously?
    Yes
    but if you want to exclude them use this
    INSERT INTO Suppliers(Company_ID,Supplier_Name,PUblic_Supplier_ID)
    SELECT s1.Company_ID,
    s2.Supplier_Name,
    s2.Supplier_ID
    FROM Suppliers s1
    CROSS JOIN Suppliers s2
    WHERE EXISTS(
    SELECT 1
    FROM Company
    WHERE Company_ID = s2.Company_ID
    AND IS_PUBLIC_SUPPLIER = 1
    AND s1.COMPANY_ID <> s2.COMPANY_ID
    AND NOT EXISTS (SELECT 1
    FROM Suppliers
    WHERE Company_ID = s1.Company_ID
    AND Supplier_Name = s2.Supplier_Name
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

Maybe you are looking for

  • Processo Venda à Ordem (Venda Triangular) - Cancelar Pedido de Compras

    Olá Pessoal, Personal Olá, We are configuring a process of Triangular Sales in accordance with building block J54. However in this document it does not deal with a process cancellation of the Order of Sales. Below I describe the stages of the process

  • I am using the wrong language to access a secure website. How can I change it to English?

    I am trying to access my university account from a computer in Germany and while I can access some features, such as e-mail, it is not allowing me access to my secure faculty account. The message I am getting is that I am using the wrong language, i.

  • Install Windows 7 from a USB on mid 2011 15" MBP

    Hello all,      I have a problem. My Optical drive is not working at all, so I can't install windows from the disk. Is there any way that a 2011 MBP can install windows 7 from a usb or by some other means.

  • Outlook / Oracle Global Address List

    Just a couple of quick questions regarding manipulating the Global Address List. Firstly, is it possible to hide an entry that exists in the Oracle Directory Service from the GAL (for example, removing the orcladmin user from the address book).? Also

  • 10g streams and resolving conflicts

    Hello i configured oracle streams on 2 databases using the wizards in enterprise manage (10gR2) r, the aim is to set up multi master replication quickly and easily. If i do this how do i resolve conflicts or are they resolved automatically? I read th