Merge two text to my text fields in a

I have a TextField = COMPANY and a TextField = DATE (client can fill)

I want to make a text field to write: "the Z-Score, based on financials as of" (DATE) 'for' (the COMPANY) 'is '.

Thank you

I use FormCalculator.

Tags: Adobe LiveCycle

Similar Questions

  • How to fill two text fields based on a simple drop down list

    I'm trying to set up a form so that the two text fields will fill with a text by default (separate for each text field) at the same time.

    Here is a screenshot of the fields.

    Thus, for example, if I select Utah in the drop-down list in 'State', ' OH Fund Center "is automatically filled in with APWSWR4949 and"OH WBS"is automatically filled in with WR49.73.0003.

    I have a similar script for down text in form fields, but the script does not work.  I tried the following script:

    var v1 = this.getField("RecState").valueAsString;

    If (v1 == "Utah") event.value = APWSWR4949;

    else event.value = "";

    However, it would not AutoFill OH Fund Center area.  And I have no idea how complete both fields at the same time.

    Any help would be greatly appreciated.

    Thank you!

    Crystal

    Strings must be enclosed in quotation marks. So change your code:

    var v1 = this.getField("RecState").valueAsString;
    if (v1=="Utah") event.value = "APWSWR4949";
    else event.value = "";
    

    If it works, then you can use code similar to your other field.

  • How to carve, and concatenate the two text fields in a form

    Hi people,

    Newbie here... have two fields in a form: FirstName and LastName.    Want to have these appear later as: name, first name.

    For example: 'Rick' "Stockstill" should later manifest as: 'Stockstill, Rick' with a comma separating the names and trailing blanks removed.

    It is a piece of cake in Excel, but have not figured out how to do the same with Acrobat.    My first try at a script looks like this:

    (Recipient.rawValue = trim (LastName.rawValue) +","+ FirstName.rawValue);

    The field 'Recipient' is a standard text field which I am filling using the property to 'calculate '.  The good news is that I get no error message, but the bad news is that the field recipient does not get filled.

    Any help is greatly appreciated.

    At the latest,
    Rick Stockstill
    North East Independent School District
    San Antonio, TX
    210-407-0317.
    [email protected]

    OK, in this case you can use this code as the custom recipient field calculation script:

    event.value = trim(this.getField("LastName").valueAsString) + ", " + trim(this.getField("FirstName").valueAsString);
    
    function trim(s) {
        return s.replace(/^\s+/,"").replace(/\s+$/,"");
    }
    
  • combines the two text fields

    Hello, I've created a form with Adobe pro XI. I want to create a text field that combines the two fields (Field1 and Field2) text. How can I do?

    If the third field does not need to be editable, you can use a calculation script customized to what is something like the following:

    Custom calculation script

    (function () {}

    Get the field values as strings

    var s1 = getField("Text1").valueAsString;

    var S2 = getField("Text2").valueAsString;

    Set the value of this field to the concatenation of two strings

    Event.Value = s1 + s2;

    })();

  • Two text fields each other also have the values of the minimum and maximum fields?

    I have two text boxes that are mutually exclusive: one is a dollar amount per pay period, and the other is an annual amount in dollars. User can enter an amount in the box of one or the other (but not both), and I used the validation for this below script:

    Field1 script:

    If (event.value) this.getField("Field2").value = "";

    Field2 script:

    If (event.value) this.getField("Field1").value = "";

    Now, I also Inow the field limit with the minimum and maximum amounts for these same fields. But, because the range of field values is an option button other than the custom validation script, it seems that I can't do both because I can choose only one option button:

    Screen Shot 2015-11-02 at 1.25.44 PM.png

    Is there a way to keep my custom validation scripts so that they are mutually exclusive, but also to impose minimum and maximum amounts for these areas?

    You must validate the range using a script.

    It will look something like this:

    if (event.value) {
        if (event.value<10 || event.value>100) {
              app.alert("You must enter a value between 10 and 100.");
              event.rc = false;
        } else this.getField("Field2").value = "";
    }
    
  • I have two text fields, where the user will sign a text field and the other text field should be mandatory

    I have 2 text fields, and how can I do a condition when the text 1 field is entered, then they must enter data into the text field 2.  I know it seemed simple, but I'm just a beginner in this... Thanks in advance!

    Hello

    I'm sorry, I forgot this matter.

    Please try this code...

    If (this.isNull)

    {

    TextField2.validate.nullTest = 'error ';

    }

    on the other

    {

    TextField2.validate.nullTest = "disabled";

    }

    Hope than that,

    S, candy.

  • Cannot add two text fields in the same row

    Hi, I would like to add to the field of text on the same line, but when I do that (add so much to a horizontal display manage) only appears on the screen.

    Any suggestions? Thank you.

    Hello

    This code snippet shows that the 2 textfields in the screen area by giving half the width of the screen in each textfield

    HorizontalFieldManager() = new HorizontalFieldManager Manager
    {
    ' public void sublayout (int width, int height)
    {
    Field field;
    int x = 0;

    Super.sublayout (width, height);
    super.setExtent (width, height);
    for (int i = 0; i)< getfieldcount();="">
    {
    field = getField (i);
    layoutChild (field, Display.getWidth () / 2, height);
    setPositionChild (field, x, 10);
    x += (Display.getWidth) / 2;
    }
    }
    };
    Field TextField = new TextField();
    Manager.Add (field);
    field = new TextField();
    Manager.Add (field);
    Add (Director);

  • Combine two text field.

    I do a form that supervisors will use to send it to me when new employees are hired.  I want to be able to take the two field I have "First name" and "Last Name" and join them together.  The only thing is that I want only the first letter of their name and surname together. Example: Tom Jones is equal to tjones. I was able to locate a Java Script to join the first letters of each field. Programming is not my forte, so I wasn't able to change how much I need. This RAM is below.

    var v1 = this.getField("First_Name").value;
    var v2 = this.getField("Last_Name").value;

    var s1 = "";
    var S2 = "";

    If (v1.length > 0)
    {
    S1 = v1.substring (0,1);
    }

    If (v2.length > 0)
    {
    S2 = v2.substring (0,1);
    }

    Event.Value = String (s1) + (s2) String;

    Use this code:

    var v1 = this.getField("First_Name").value;

    var v2 = this.getField("Last_Name").value;

    If (v1 & v2)

    Event.Value = (v1.substring (0.1) + v2) .toLowerCase ();

    else event.value = "";

  • Text field: Add the fill and border color to the text field

    Why I can not get my fields to be filled with a color or a colored border?
    This is my first form and it is quite complex, with formulas math etc, (which is great!) but I am wrestling

    in this last two text fields little I want to stand out from the rest of the form, because they

    are the boxes, Submit and Reset.

    If you get a color picker when you try to set the background and border colors, make sure that the check-box Transparent is not checked. If it isn't her, can you describe exactly how you are trying to change the colors?

  • The exact text of the text field to another field read-only

    Is there a way to display the string of exact text in the field of text within other text fields read-only?

    For example. I have fields of name on the first page and I have the same names mentioned in the other pages, but want to fill the other pages with the text name of the 1st page.


    Options tab > Default value doesn't seem to work, so maybe I can use calculate tab > simplified field notation.

    I have a domain called "Client_1_Name_Cover" and "Client_2_Name_Cover", so name to bind these two text fields only reading on other pages.

    You can use the validation script custom following in each of the two fields of name on the first page:

    Copy the value of this field in the field read-only

    getField("Client_1_Name_Readonly").value = event.value;

    but you must replace 'Client_1_Name_Readonly' with the actual name of the field read-only.

  • show or hide text fields based on another text field value

    Hi, I have 3 text fields totals. by default, first text field is visible & other hidden two. what I want to do is if enter all the values in the first text box, other two text fields should automatically visible. Likewise, if I remove the value in the first text box, and then two other fields should automatically hide again. so thanks for giving me a java script for that. also I need javascript for hidden text fields. This script should check the values in the first field work and text (visible or hide). Thanks in advance...

    As the custom field the validation script enter this code (of course, set the names of the other fields as required):

    if (event.value=="") {
        this.getField("Field2").display = display.hidden;
        this.getField("Field3").display = display.hidden;
    } else {
        this.getField("Field2").display = display.visible;
        this.getField("Field3").display = display.visible;
    }
    
  • error 1119 trying to put in place of text field with dummy text that wipes on selection

    Hi guys,.

    Brand new to Flash so bear with me...

    I try to add two text fields that contain dummy text. This text is then wiped when a user selects the this text field, although it is not wipe any text input by the user if they choose this new text box.

    Error is:

    Scene 1, layer 'Text Login', frame 2, line 91119: access of property may be undefined onSetFocus through a reference with static type flash.text:TextField.
    Scene 1, layer 'Text Login', frame 2, line 201119: access of property may be undefined onSetFocus through a reference with static type flash.text:TextField.

    Code is below.

    {

    import flash.text.TextField;

    }

    {

    var initialemailText:String = "E-mail";

    emailText.text = initialemailText;

    emailText.onSetFocus = function() {}

    If (emailText.text == initialemailText) {}

    emailText.text = "";

    }

    }

    }

    {

    var initialpasswordText:String = "Word of past";

    passwordText.text = initialpasswordText;

    passwordText.onSetFocus = function() {}

    If (passwordText.text == initialpasswordText) {}

    passwordText.text = "";

    }

    }

    }

    Any ideas?

    Thank you

    change the named functions and fix their arguments:

    function emailFocusF(e:FocusEvent):void {}

    etc.

    }

    function passwordFocusF(e:FocusEvent):void {}

    etc.

    }

  • body of text field

    I try to get two text fields on a PDF form to appear in the body of the email when the button submit (using javascript) is selected.

    This is how I think the code should be, but his does not work:

    "" I entered in the ' / n/n ' to have a paragraph between the two text in the body of the email, but I get a syntax error after the last "".value + "".value + ' .value + '

    var parts = "Repair Request - "+getField("Component").value+" - "+getField("Serial_Number").value+" - "+getField("Number").value
    var cBody = "+getField("Diagnostic").value/n/n+" "+getField("Diagnostic_2").value+" 
    this.mailDoc({
    cTo: "[email protected]",
    cCc: "[email protected]",
    cSubject: parts,
    cMsg: cBody
    });
    

    Who's wrong in my code?

    N ° it should be:

    var cbody = this.getField("Diagnostic").valueAsString + "\n\n" + this.getField("Diagnostic_2").valueAsString;

  • View the value of a text in the text field B field

    I have a PDF form with 2 layers. Layer 1 has information, a textfield and a button. Layer 2 is a model of certificate. The user enters his name in to a textfield called NameEntry.


    When they hit the button, disappears from the layer 1 - instructions and the box of NameEntry become hidden. Layer 2 is the model certificate and I need a new textfield (which is called NameDisplay) to be filled based on the information entered in the text field NameEntry.


    The answer is simple, I know, is to appoint the two text fields. This does not work for me I need input textfield that will carry the differently (background and border) because of decisions out of my hands vs the NameDisplay who will be no background and no border.

    Any ideas? Thank you!

    Use this custom calculation script:

    Event.Value = this.getField("NameEntry").valueAsString;

  • Text fields show only not in Design or in Live View mode

    Hi all

    I ran into a problem when trying to create a simple through Dreamweaver CS6 contact form.  I have two text fields for the name & Email and 1 text box for comments.  The question that I am running is that text fields are not displayed in Design or in Live view mode.  I have installed all the required variables for the server for the form to work... but that shouldn't have any effect on the demonstration of text field...  I tried to download my contact page with the same result of no list of text fields...

    What is really laughable, it is that the "text box", that I placed in my form for comments appears in Design mode & Live very well.  I think I'm missing something, but don't know what exactly.  The form is rendered by CSS.

    Here is the code for the form:

    < div id = "CRDForm" >

    " < form action =" http://www.sweetformimi.com/FormMail/formmail.php "method ="post"enctype =" application/x-www-formulaires-urlencoded"name ="contact"target ="_self"id ="contact"> "

    < input type = "hidden" name = "env_report' value ="REMOTE_HOST REMOTE_ADDR, HTTP_USER_AGENT, REMOTE_USER and AUTH_TYPE">

    " < input type ="hidden"name = 'recipients' value = ' [email protected] "/ > "

    < input type = "hidden" name = "subject" value = "Contact form" / >

    Your full name p > < label > <

    < input name = "Name" type = "text" id = 'Name' size = "40" / > < / p >

    < / label >

    < label > < p > Email

    < input name = "email" type = "text" accesskey = "2" tabindex = "2" title = "Email" value = "Email" > < / p >

    < / label >

    < Label > comments < br / >

    < = cols 'comments' textarea name = "40" lines = "10" accesskey = "3" tabindex = "3" title = 'Comments' > < / textarea >

    < / label >

    < name of entry = 'submit' type = 'submit' accesskey = "4" tabindex = "4" title = "submit" value = "submit" >

    < / make >

    < / div >

    There are other variables that I should think in the rest of my site?  I use a checkerboard to fluid.  I have CSS for office, Tablet and phone devices.  I also have a primary CSS file that imports all three.  Structure sites was conducted through the use of < header >, < article >, < footer > and of course the < div > tags.

    Has anyone already has the "text fields" does not come before? Is this a simple fix like reinstalling Dreamweaver CS6?  Finally, another thing I should mention is that I had a previous version of Dreamweaver on my computer, which was of CS3.  I have do not uninstall before installing the latest version.  I assumed (and I could be wrong here) that it would automatically replace the old version.

    I apoligize for what it is long-winded, but I am looking for help on this issue...

    Thank you

    Take the code you have posted and insert it into a new document in Dreamweaver as it is, record and watch. The fields on the form show? If they do there is something else in your code or the css that is responsible does not appear in this case, we would need to see the entire page and css.

    For me the code in design mode and live mode view shows your form fields.

Maybe you are looking for