Deactivation of packaging of the values in the editable text field.

Hi friends,

I need to use the text with a fixed width field.

And I want to disable the text wrapping in the editable text field.

How can set a fixed width or / and turn back to the line.

Thanks in advance,

Stéphane

See this Article.

http://NA.BlackBerry.com/eng/devjournals/resources/journals/jul_2005/creating_textbox_field.jsp

Tags: BlackBerry Developers

Similar Questions

  • Continuous text moves horizontally rather than start a new line in the editable text field

    I'm doing a diet backbox for visitors on my site. I did the field bar and editable text scroll and set my preferences, but when typing reached the border on the right side of the text field it just keeps typing more horizontally. I can start a new line by pressing on enter, but I want to start a new line on its own when it reaches the limit. Any help is appreciated.

    assign the wordWrap property of your true textfield.

  • How can I validate a form if at least one of the three text fields is selected

    Hi all

    My form has many fields but 3 text fields here that I need to have the Viewer to enter text in a text field before hitting the submit button.

    Don't know how to do in this regard.

    Thank you

    Courier says:

    I can't understand how to ensure at least a field is selected by the Viewer on the three text fields, any thoughts?

    Yes, I played a bit with this idea earlier today, but got distracted by other things.

    What follows is based on the following:

    • There is only one form on the page
    • No validation is involved
    • Each of these fields in the group that needs at least a field has "data-req1" (without the quotes) in its opening tag

    For example, if you have a form like this:

    Add the following just before the closing on the page tag:

    If you try to send the form without find out the name or the email field, you will get an alert dialog box and will refuse to submit the form. But if one or the other or both fields have values, the form will appear.

    In other words, it will work with any number of fields that have "data-req1" in the opening tag. So much that one of these fields has value, submits the form.

  • Radio button of the available text fields

    I have Radio buttons affect you yes and no, I want to make sure if yes is selected the three text fields are available and necessary, but if none is selected then three fields are not available.

    Help, please.

    Place the following code in the MouseUp event of two radio buttons. This code assumes that the value of the key to Yes is 'Yes' and text fields named 'text1', 'text2' and 'Text3 '. Change depending on your situation. If the Yes button is not selected, the text fields are hidden and their values are reset. If so, the fields are displayed.

    You really should put the function as a function called in a JavaScript script at the level of the document and call it from events MouseUp, but you should get the idea.

    (function () {}

    An array of names of fields for text fields
    var f_names is ['text1', 'text2', 'Text3'];.
    var i, f, disp, bReset;

    Whether to show or hide fields
    and to restore or not
    If (event.target.value = 'Yes') {}
    DISP = display.visible;
    bReset = false;
    } else {/ / no is selected}
    DISP = display.hidden;
    bReset = true;
    }

    Show/hide the text fields and reset if indicated
    for (i = 0; i< f_names.length;="" i="" +="1)">
    f = getField (f_names [i]);
    f.Display = disp;
    If (bReset) f.value = f.defaultValue;
    }

    })();

  • Text that develop with the expandable text field

    I created a form using Livecycle Designer. I have 2 questions;

    1. how to create repeating fields.

    2 it is the text before and after the extensible text field, how the texts after the text growable field 'navigate' the text growable field. (when the user starts to fill the field expand the text after the demon of the text is expected to grow to the right as the text field.)

    3. how to create the text field in double capture / will reflect whatever the user type in a field in another text field without filling actually twice.

    See attached file

    Will be grateful if anyone can help! Thank you thank you =)

    For Q1 and 2 there is something called a field floating allow you to merge the data in a text block and reflow to remove all spaces in the block. This is available only when the data are merged on the form. This isn't an interactive field. Once the data are merged, it is transformed into a block of static text.

    For Q3, this is a case to assign a value to another.

    FieldNameofTargetField.rawValue = OriginalFieldName.rawValue;

    This code must be run on an event related to the original material. In general the exit event is used for this purpose. So when the user leaves the field, the target field will be updated with what was typed in the original field.

    Paul

  • How to make the PDF text field to be strikes do not copy/paste from previous text fields?

    Dear friends

    Helps to solve a problem related to the fields of PDF text, please

    Is there a way to make a PDF of the respondent, which ends of fields text to type own text not copy/paste of the previous text fields?

    Thank you very much!

    Copy the following code, used as key event custom field of your field, will prevent to enter more than one character at a time, which means that copy it text from an external source is not possible:

    if (event.change.length>1) event.rc=false;
    

    However, you can inform your users of this restriction, or they think that something is wrong with the file.

  • Move from one field to the other and to validate the response to the first text field automatically

    I have a problem I want to know if someone could help me with.

    I have a dynamic text box called help_txt and I have some initial instructions in order to achieve the first text field with relevant information.

    Selection.setFocus (prCv1_txt);
    Selection.setSelection (1, 0);

    The focus is already set at the beginning of the first text field, which has 2 characters maximum indicated. It is also a text entry field.

    The right answer for prCv1, which is the variable, is 01.

    If the user types 01, I want the following to happen:

    cursor automatically advances to the next text field, which is called groupNo1_txt and I want another message to display the correct information in the field of help_txt, such as the type in the next field.

    If the user does not type 01, I want the following to happen:

    cursor goes back to position 1 of the prCV1_txt text box and another message to display in the field help_txt, by mistake, please enter 01 in this area.

    Initially, I got the code to check if the user pressed the Tab key, but the error message for the 2nd text box automatically displays do not give the user the ability to type information in the second text field (groupNo1_txt).

    Can someone help me please!

    If you need me to attach a file, I can do.

    Thank you...

    Use a conditional in the onChanged function that tests first to see if the entry is at the correct number of characters...

    If (prCv1_txt.length > 1) {}

    If (prCv1_txt.text == "01") {}

    Disable prCv1_txt, select groupNo1_txt

    } else {}

    Msg error and/or reboot

    }

    }

  • fat / itallic in the dynamic text field

    I can't work in a load dynamically the "BOLD" text field text - try foie gras < b > < /b > and < strong > strong < facilities > formatting tags...

    Use Flash 8.0

    I want to use the font is Bradley Hand ITC, which I have incorporated.

    Thank you

    Thank you - that would make sense - I don't have it get it...
    Thanks again.
    M

  • Cannot access a value stored in a text field

    I created a small test page to try to understand how a piece of javascript works, well in fact it does not. All I'm trying to do is display the value entered in a text field in a form, and it does not

    SCRIPT5007: Failed to get the value of the 'value' property: object is null or undefined

    temp.php, character 39 line 1

    The line that it is a failure is

    x = document.getElementById("otherChoice").value;

    The page can be seen here www.hollisterairshow.com/temp.php

    I don't understand why he thinks that the text field is not defined when it is clearly. I use DW CS4 and IE9.

    Thanks for the pointers, you may have.

    Tony

    You must add a tag to your input field.

    you have:

    Apples
    you need: Apples
  • Need help: I need a checkbox for auto fill a value defined in the separate text field.

    Hi, this is my first time with the inclusion of scripts in a PDF form.

    We have a form that requires the user to check a box on medical conditions, they have (e.g. asthma, diabetes, Hypertension).  Later in the form, you must type the same condition in a text box. (I know it's stupid to the double document, but it is necessary).  Y at - it a script that will automatically fill the text box when the check box?  For example, if they check the asthma, the text box on a page in the PDF file will say "Asthma, controlled."  Is this possible?

    In addition, if they don't click asthma and click on diabetes, could you add diabetes to the first text box, but if they check them both, he would add asthma in box 1 and box 2 diabetes?

    Any help would be GREATLY appreciated.

    I'm using Acrobat 9

    Thank you!

    You could try to penetrate into this scipt in the text box that will contain the word 'Asthma', as appropriate.

    The screenplay is based on the boxes with the names "cbAsthma" and "cbDiabetes".

    The script in its present form adds the text in a box.

    As always with these scripts, they are case-sensitive.

    var a =' '

    If (this.getField("cbAsthma").value is "Yes")
    {
    a = 'asthma (controlled).
    }

    If (this.getField("cbDiabetes").value is "Yes")
    {
    a = a + "Diabetes".
    }

    Event.Value = has

    Hope that it will be somewhere near you looking for

  • How I set the value of a dynamic text field row

    I have a repeated line form that contains a button and several text fields.  There is a text field (input field) above with some information I want to place in the table and several buttons that I want to read the value of and defined on the table.  Excuse me there are several questions I have and I use pseudocode to describe.

    Top shape resembles

    InputField

    | ButtonX1 | ButtonY1 | DescriptionX1 (read the text only field)

    ...

    | ButtonXn | ButtonY1 | DescriptionXn

    OutputRow looks like

    | ButtonOutput | OutputField1 | OutputField2 | OutputField3 |

    So, I want to do

    ButtonX1.click

    {

    OutputTable.OutputRow.addInstance (true) //this works - everything I have questions on

    OutputTable.OutputRow.OutputField1.rawValue = DescriptionX1.rawValue

    /*

    Question 1

    How should I address the location of each table to set a value

    Question 2

    How can I get the value of the description field in the same row as button and table

    I would like to say something to the effect of the OutputTable.OutputRow [?]. OutputField1.rawValue = this.parent.DescriptionX

    */

    OutputTable.OutputRow.OutputField2 = InputField.rawValue

    /*

    Same question as above - how can I specify a dynamic line - it's the syntax appropriate for obtaining the value of the input field?

    */

    OutputTable.OutputRow.OutputField3 is this. ButtonLabel

    /*

    Question 3

    How can I get the value of the label of the button to set the field

    There should be a lot of these buttons and buttons will be added - I'd rather set the value based on the label of the button to facilitate value - not requiring only not to change the code

    */

    Issue 4--unrelated to those at the top.

    Is it possible to build the first table

    | ButtonX | ButtonY | Description |

    from a XML file.  I've seen examples showing how to build if it's just data, but XML can be pushed into a form with the code to perform the above actions?

    Glad you figured it out... nothing wrong with doing it this way.

    Normally XML contains data and no default legends these xml files are bouond to the rawValue property. You can enable the dynamic linking and other properties of the object will be bindable (they appear as links) in the user interface. If you click on the link to legend an Assistant appears allowing you to bind the node in the XML file.

    Paul

  • 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;

    })();

  • InDesign CC: Text in editable text fields in the process of disappearance after export

    Hello

    I'm having a problem of text of text editable in endangered fields after you export the document as an interactive pdf. I created the text that should be editable in acrobat with InDesign CC. Thus, for example, I want to have a field editable text that said "I am Marie." I want users to have the ability to change from "Married" to "Tom" or "Ben" in Acrobat. So the pdf should have a form of editable text, saying the phrase "I am Mary" when users open the PDF in Acrobat. However, aafter export, the remains of fields of text, but the text itself "I am Mary." disappeared. I do not understand why this is happening because the text is there when you preview in the Preview SWF window in InDesign.

    Here it is the list of steps in my work.


    STEP 1: Create some texts (for example, m with the tool text frame in InDesign CC )


    STEP 2: Click with the right button on the image and click on "Interactive > convert to text field»

    OR

    STEP 2: Select the block of text, open the window "buttons and forms" and change the type as "text field"


    STEP 3:  Export the document as an interactive pdf. The parameter is set by default.


    Result: When I open the PDF in Acrobat, the text field is there, but it is empty.


    Please help me solve this problem. I know this is possible because a person in front of me in my work.

    Thank you!

    As far as I know, to have a form pre-filled text [I am Marie] appear in the text field, you must set the default value of the text field in Acrobat. You can do this by selecting the field property > Options > Default Value

  • JavaScript - fill the listbox text field

    Hoping someone can help me! I'm new to Javascript and I am filling a text field with the selections in a list box, including the possibility for multiple selections. I want to separate multiple selections by a comma, and I've tinkered this script as a custom calculation in the text field of various other discussions:

    var textFieldNewValue = «»

    Delimiter = ', ';

    var f = this.getField ("capabilities");

    var a = f.currentValueIndices;

    If (typeof == 'number') / / a simple selection

    {

    textFieldNewValue = f.getItemAt (a, false);

    }

    else / / multiple selections

    {

    Console.println("Selection:");

    for (var i = 0; I <.) Length; i ++)

    {

    If (I! = 0)

    {

    textFieldNewValue += "";

    }

    textFieldNewValue += f.getItemAt (a [i], false) + separator;

    }

    }

    Event.Target.Value = textFieldNewValue;

    My problem is that the list also ends with a comma, which I would like to delete. I don't know how. If anyone can help with this problem, I would appreciate it!

    It's a convoluted big... A much simpler version would be the following:

    var v = this.getField("capabilities").value;

    If (typeof v == 'string') event.value = v;

    else event.value = v.join (",");

Maybe you are looking for

  • Script on web pages and email error

    I looked at your solutions and they do not seem to work for me so I'll tell my story. I have a model HP Photosmart Premium 309 a print-scan-copy-fax works with Windows 7 and IE9. My cartridge black Hp stopped working and I replaced all the with the n

  • Is it possible to display all the songs by an artist (instead of just the titles album) (rocket)

    On the "rocket", when you select the name of an artist in the music menu, it displays a list of all titles of the album by that artist. At the top of the list is the ability to 'play together', but I can't understand how to display all the songs of t

  • PowerEdge 1900 &amp; WS2012r2

    Gents I decided to migrate my old WHS2011 about her inherited PowerEdge 1900. I have 10 SATA drives to transfer (sizes 1 to - 4TB). I started by moving the 3 x 2 TB SATA B, C & D Port drives so that they know. SATA is occupied by the SSD. Now, everyt

  • Incomplete LightScribe labels

    I have struggled with this problem for some time and cannot understand why labels do not completely print. The labels appear as tasks.  These are not circular rings (if necessary).  For example, a partial label can appear at the bottom of the disc an

  • Dead Ringer for MS Paint with several levels of undo?

    For documentation purposes, I often have to "enrich" the images (photos, screenshots, sketch) with simple annotations, usually of the boxes around objects or arrows over the text, which is nothing spectacular. Basically MS Paint would be already perf