Combination of fields on the form to create a line of message and subject

I have a few fields on my form I want to combine and create a line of message and the subject of.

The fields are FirstName and LastName

Using these two I want a topic saying something like "it's a form BLAH

First name + name

And something similar to a message on e-mail. As cc their email so that they get a copy of the form

Is it possible

Hello

In my original example, I have a TextField object, called subjectLine. If your form does not have this object, then the script will fail, because Acrobat/Reader knows not what subjectLine is (for example, it is undefined).

If you look at the original example, I want to build a subject line in the electronic mail using the TextField subjectLine. That's why I first test to make sure that the subjectLine TextField is not null.

Where in your case you should be stable that FirstName and LastName is not zero, because these are the two objects that you use to create your subject line of the message.

So for this part of the script, it's what I expected:

// Check subject line field and extend error message
if (form1.p1.subUserInformation.FirstName.rawValue == null || form1.p1.subUserInformation.LastName.rawValue == null)
{
     errorMessage = errorMessage + "\n - please provide your first name and last name.";
}
else
{
     vSubject = "Completed: Structure Change Form " + form1.p1.subUserInformation.FirstName.rawValue + " " + form1.p1.subUserInformation.LastName.rawValue;
}

Then the last script block checks all the options that are used to form the email and either send the email if they are all not null or gives the error message to the user:

// If fields required for script are null, warn user and do not initiate email
if (emailAddress.rawValue == null || form1.p1.subUserInformation.FirstName.rawValue == null || form1.p1.subUserInformation.LastName.rawValue == null)
{
     xfa.host.messageBox(errorMessage, "Sending an email", 0, 0); // Send out a custom error message if any of these fields are null
}
else
{
     // Everything is OK, send email
     event.target.submitForm({cURL:"mailto: "+ vEmail +"?subject=" + vSubject +"&body=" + vBody + vCC,cSubmitAs:vFormat,cCharset:"utf-8"});
}

Who is?

Niall

Tags: Adobe LiveCycle

Similar Questions

  • Submitting a form by creating multiple lines in the DB table

    Hi all

    I created a new Apex application and have created a table with columns - USER_ID, ADDRESS, TELEPHONE, CREATEDON etc.

    I want to read the USER_ID of the user and complete this field on the form and fill in the CREATEDON field with the date system. These two fields are hidden on the form.

    Now, when the user fills his address and phone on the form and click on send, 3 identical rows are inserted into the DB table. The values of user and date system are set correctly.

    To set the UserID field, I inserted a $APP_USER. in the default value of the form section. I am not able to understand why the Apex is to insert several lines even when you click the submit button once.

    Help, please.

    The problem is solved now. I noticed that add default values for the form fields added process duplicate. That's why the form has been processed three times. Remove the additional process solved the problem.

  • How to edit pdf file (in indesign) without having to re-export then and redo all the fields of the form and formatting?

    How to edit pdf file (in indesign) without having to re-export then and redo all the fields of the form and formatting?

    Edit PDF files in InDesign is not a good idea. If the file was originally exported ID, then change the original and then create a new PDF file.

    Open an old, and then use the command replace Pages to insert the new pages on the 'old'. The fields that you have already created will remain in place when you do this.

  • How to disable certain fields in the form of a calculation with a checkbox for the fields.

    How to disable certain fields in the form of a calculation with a checkbox for the fields.

    In Canada, we have taxes

    I create a form that allows them to calculate a total

    Shema-pdf-form.gif

    I need to be able to turn off all of those taxes to participate in the calculation and to their field visible should be 0

    I was thinking about using a check box (when the checkbox is enabled (Yes) the tax is calculated, unchecked (Off) the tax is not calculated and visible field should show 0 or anything...)

    I really need help on this one, I am a complete newbie...

    Note that the second tax is calculated on the sum of what the first tax Add (tax first is pan-Canadian tax (all provinces).

    The second tax is never only use (Quebec only (in addition to one Canadian)

    Sometimes to sell outside Canada - no tax at all is calculated...

    What should I do?

    Yes, it's just the JS...

  • Adobe Creative Cloud Muse: Why I no longer receive the email of the form I created in multiple Web sites?

    Adobe Creative Cloud Muse: Why I no longer receive the email of the form I created in multiple Web sites?

    Hi Nicole

    Sorry for the late reply! , I see that you are already working on the same problem with another thread: why some forms of contact does not work on some Web sites? We do not receive the form with the information of?

    Try the suggestions of Brad and check if it works.

    Thank you

    Sanjit

  • How to effectively check if a field in the form is not null

    Hello

    I'm guessing there's a way to programmatically check if a field has been entered during the loading of the form.  A sort of loop should do the trick...

    I tried to use the following code (from dohanlon for another purpose) which must run through all fields in the form, but I can't plug it in an if/else statement or even check for any value non-zero.

    xfa.resolveNodes (' form1... #field [*] "" ');

    Conceptually, here is how I like to do:

    If (xfa.resolveNodes ("form1... #field [*------]".rawValue!)) = null) {}

    Do it

    }

    Basically, I'm just checking if any field is not null, then I can "do something".  I know that I can't use it to check .rawValue but I can't think of anything.

    I'd appreciate any help (as always).


    Hello

    I prefer loops, because you can build in a little management as well as errors.

    See an example here: http://assure.ly/H1ksGR.

    Hope that helps,

    Niall

  • Help! I do not see my comments of the form I created

    Here is the form I created

    When I fill the form in Firefox and access it via my email client that I put in place in my email_form.php, I get the email, I see the name and the email address I put in shape, but I don't see the comments I put in shape. I have another site where all that it works, but not this one.

    < do action = "email_form.php" method = "post" enctype = "application/x-www-formulaires-urlencoded" name = "contact" target = "_blank" id = 'contact' > "
    < fieldset > < legend > Your Contact Information < / legend >

    First name < p > < label for = "name" > < / label >
    < input name = "name" type = "text" id = "name" size = "30" maxlength = "50" > < / p >

    < p > < span id = "sprytextfield1" >
    < label for 'email' = > Email < / label >
    < name of entry = "email" type = "text" id = "email" size = "35" maxlength = "50" >
    < span class = 'textfieldRequiredMsg' > an email address is required. </span > < span class = "textfieldInvalidFormatMsg" > please enter a valid email address. </span > < / span > < / p >
    < p >
    Comments of < label for = "comment3" > < / label >
    < name textarea = cols 'commentary' = "50" rows = "6" id = "comment3" > < / textarea >
    < /p >

    < p > < input type = "submit" name = "submit" id = "submit" value = "Submit Your Request" > < / p >
    < / fieldset >
    < / make >

    It is not the label name which must match, it is the name of the form control. Your textarea is named 'how', but your script is looking for 'message '.

  • the fields on the form appear

    Hello

    in a database table, I have 6/10 fields, while I show you 3/4 fields on the form.
    There are 5 blocks from different tables.

    Is it possible when I click on the button in a field, I get a msg with all the fields that are plurarite of this block.

    for example...
    table MYTABLE has 10 fields for example A, B, C, D, E, F, G, H, I etc etc...
    on the form, I'm showing A, B, C, D

    When I double CLICK on any one of the fields he shows me a msg like "A B C of (the name of the fields).

    Thank you

    TRY this
    Call it in iblock level when double click
    It will show you all the items that are placed on the canvas.

    PROCEDURE p1 IS
    * Name1 varchar2 (30); *
    * name2 varchar2 (2000); *
    BEGIN
    Name1: = get_block_property (:System.cursor_block, first_item);
    loop
    * exit when name1 is null; *
    * if get_item_property (name1, visible) = "TRUE" THEN *.
    * name2: = name2. Name1; *
    * else *.
    * null; *
    * END IF;     *
    * name1: = get_item_property (name1, nextitem); *
    end loop;
    message to (name2);
    Name1: = NULL;
    END;

  • I forgot my password for windows 7 for my laptop and a reset disk has not been created. How can I recover the password or create a new one? and I have a dell desktop inspiron one 19

    I forgot my password for windows 7 for my laptop and a reset disk has not been created. How can I recover the password or create a new one? and I have a dell inspiron one 19 desktop... your help will be very appreciated thanks in advance!

    Here are the usual methods to solve this problem:

    • Restart the computer with your Windows repair CD, then use system restore to set Windows in a few days (only works if you have recently changed the password).
    • Logging in as a different admin account and then reset the password for your existing account (works only if create you an alternative admin account).
    • Log in as administrator mode without failure, then reset the password for your existing account (works only if you have activated the account administrator and know its password).
    • Insert your flash drive USB with the password key file (only works if you have created such a keyfile).
    • Check your paper files (works only if you threw down the password somewhere)

    If none of these standard precautions work for you, then the remedy will be painful. Post again if this is the case.

  • Could not submit the working ' PSP: create Distribution lines.

    Hello

    I am new to the distribution of work and when I try to send the job ' PSP: create Distribution lines ", I can't pass any value for the parameter"Source Type"- there not all valid values (it's a valid table valueset).

    Before attempting to run this job, I ran the ' PSP: import pay Transactions of MFC.

    Could someone please guide me if I am away no matter what stage between the two?

    Please advice.

    Thank you
    Sagar

    Thread double (please post only once).

    Could not submit the working ' PSP: create Distribution lines.
    Re: Can not submit the working ' PSP: create Distribution lines.

    Thank you
    Hussein

  • Dynamic action to email from automatic calculation of the fields in the form created in the APEX firstname and lastname

    Hello

    I am working in the form based on the employees table. I have email_id (P169_EMAIL_ID), last_name(:P169_LAST_NAME) and 3 fields/items first_name(:P169_FIRST_NAME). I am trying to create a dynamic action Auto Fill the id field of electronic mail with the email ID immediately when the user enters first name and family name, he clicks on the e-mail id field. Please help me with suggestions for the code I should use in dynamic action. For example, if a user enters rakesh in the first name field and choudhury to registered name the by clicking the id field e-mail should automatically show [email protected]

    Thanks in advance!

    Hello

    957450

    You need to change your name to something more appropriate

    I work in the form based on the employees table. I have email_id (P169_EMAIL_ID), last_name(:P169_LAST_NAME) and 3 fields/items first_name(:P169_FIRST_NAME). I am trying to create a dynamic action Auto Fill the id field of electronic mail with the email ID immediately when the user enters first name and family name, he clicks on the e-mail id field. Please help me with suggestions for the code I should use in dynamic action. For example, if a user enters rakesh in the first name field and choudhury to registered name the by clicking the id field e-mail should automatically display [email protected]

    You can use a DA to set the email in the agenda of the Email page when there is a change in the maybe the first name of the person if it follows in the order you presented above.

    E.g.

    Event: change

    Point: P169_LAST_NAME

    Action: Set

    Fires when the event is the result: true

    Parameters

    Set tYpe: PL/SQL body Funtion

    declare
    l_email varchar(40);
    begin
    l_email := :P169_FIRST_NAME||'.'||:P169_LAST_NAME ||'@oracle.com' ;
    return l_email;
    end;
    

    Page items to submit: P169_FIRST_NAME, P169_LAST_NAME

    Items concerned:

    Article: P169_EMAIL_ID

    NB: I recommend that you look at the dynamic Actions of the sample under the application package.

    Hope this helps

    Kind regards

    Benjamin.

  • Add the date and time to a text field when the form is submitted

    Is it possible to add the date and time to a text field where the user is clicking the button of form submit?

    I created a custom send form button and do not use the distribution process to collect the results and would like to have a time stamp of when the form has been sent.

    Thank you!

    Sure. Before your submit order add a command run JavaScript with this code:

    this.getField("SubmitDate").value = util.printd ("mm/dd/yyyy hh: mm", new Date());

    Change the field name or date that required such boss.

  • Duplicate fields in the form on multiple pages

    I have created a form that requires the entry of several items on different pages. Once I created the first set of fields, I would like to reproduce (copy and paste?) these same fields to other pages requiring similar entries. Each group can have several areas such as name, address and other info etc.,.

    You can also use the object model to create a template with the form fields and then superimpose the model on other pages and fields will appear in the same place with the same name... See the JS Acrobat API reference for more information.

  • Why the form I created automatically t complete line down?

    I created a form with columns. People filling out the form in one of the columns, enter an x to indicate the status of the project (to come, on the target, behind, not known.) All fields are working well except one. In this special column "not known", it automatically fills all columns with a 'x '. No idea why and how can I fix it?

    In this case, make sure that your fields have a unique name. The fields with the same name will automatically have the same value.

  • How can can add text fields in the form automatically pdf document?

    I use Adobe Acrobat X (10.1.3) installed on Windows 7 to create pdf forms. My document is very similar to a "lined paper A4 notebook.

    I want to add the text field for each row of lined notebook, so people will be able to write what they want line by line.

    As my document has 20 lines in each page, and a total of 64 pages, I won't add these fields one by one. (drawing of rectangles with precision and aligning each other, assigning separate 'field name' to ensure solid mounting.)

    Property 'Set the Multiple field' within the right - click cause misalignment during 5-6 lines statement on the other.

    You have any suggestions or work around I can receive?

    See Doc.addField. If there is a model for the positions lines on each page, then you can generate the positions in JavaScript and use Doc.addField to set the text fields.

Maybe you are looking for