Always selectable hidden text fields?

I have a few contextual screens in my app with TextFields. They are set to appear in the center of the screen when a user demand, the problem is that, while the Group's point of view is hidden and the textfields are not visible on the screen the user can give still textfield focus. This happens with the SDK Flex 4.6.0 Air SDK 3.0.0. Soft original was developed in the Flex SDK kit 4.5.1 and Air SDK 2.0.0 and at any time I see this kind of behavior. If anyone has experienced this before? and are there any suggestions or corrections to do, are looking for something quick and easy. Thank you!!!

Instead of setting the visibility have you tried add/remove children?

Tags: BlackBerry Developers

Similar Questions

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

    })();

  • How to position text in a text field so that it starts in the upper left corner, rather than in the Middle?

    Once more, I'm working on another form for the boss.  It is a form of assessment where you make a section for comments.  I know how to select the text field so it will allow several lines, but I can't find a way that allows me to set the starting point of the text in the upper left corner of the text box and then sink.  It always starts in the Center.  If I do the text box too small as an up/down arrow icon is displayed and the user must drag the arrows up or down to read the comments and is not the effect I want to create.

    Thank you.

    M Campbell

    With the field of selected text, switch to the view of paragraph. You can switch between ' change the caption and value ","Change Caption"and"Change value"by clicking on the chevron. Select alignment for the caption and the value.

    Steve

  • First text field in the page submit when the Enter key is hit. Don't want to send

    Hello

    I searched and cannot find this answer I had before...

    The text field is not present it always when you press included, just a standard text element.

    because it is the first text field in the page... or maybe it was because it is the text field on the page that requires him to 'Submit' page when you press the Enter"" key.

    I don't want the Enter key to send the page.
    Was - to add a dummy hidden text field before this text field?

    Bill:

    Add another text element to your page and to the text element 'attributes of HTML Form elements' specify

    style = "" display: none ""

    CITY

  • Fill in the text field when TWO radio button is unchecked

    Hello

    I don't know anything about javascript and need help.  I have a photography contract I want to offer a "discount package" of $50 when the two services will be used.  1 service is 'Photography coverage' and Service 2 'Photo Booth Rental'.

    Text field 1 = subtotal (calculates the values of checkbox and radio button)

    Text field 2 = discount (it's where I need help.  I would like this automatically filled with $50 when my default two boxes are not selected.  But only when the TWO are not selected)

    Text field 3 = Total (which has a basic calculation of the Subtotal-Discount)

    The services of two by default (it's done on purpose, I checked from the beginning) are both set to the '0' values to keep the subtotal $ 0.  If the client will use a service (which means one of the default selections will be selected), then there will be no discount, but if they decide to use photography and the cabin, they save $50.

    Can someone please help me to write a script for the text field, Discount calculation, to accomplish what I ask?

    Untitled-3.jpg

    You can use something like what the calculation script custom field discount:

    Event.Value = (this.getField("Service1").value == 0 | this.getField("Service2").value == 0)? 0: 50;

    Simply adjust the field names in the code to match the real in your file.

  • 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;
    }
    
  • Dynamic text field not display the text even when the font is embedded.

    Hello

    So, I have a basic actionscript code.  It is a heritage site, so I use AS2.  The line of code is simply this:

    myField.text = "text".

    So I select the text field on the stage, and then make sure that the police is incorporated.  All the glyphs I want are checked, but then when I compile and test, the fonts do not appear when the code is executed.  Instead, the TextField is empty!  That's happened?  Where the text is?

    I should mention that the .swf that I compile is loaded in another parent .swf during execution.  If that parent .swf contains no fonts embedded, which is why it broke?  I'll try, but I just wanted to see if anyone can give some advice for troubleshooting.

    Thank you for your time and help!

    Yes.   the main swf file must incorporate this policy.

  • Unable to select or enter the text in the hidden form field

    If I select 'Visible' to fields in the form that I created, I can enter text in them BUT they show as a gray light box.

    If I select "Hidden" or "Hidden but printable" there is no box grey, but I can not put in value, select or enter the text in the fields once the PDF form is saved.

    It of the same or not I have to save as 'Reader Extended PDF' or not.

    I use Acrobat for Mac.

    Thanks in advance.

    It's highlighting of field assets.

  • Turn off the text field (always submits page when you press enter)

    I have an area which allows you to enter search criteria. There are two fields and a button. The 1st field is a selection list that gives a list of columns in a database that can be searched on. The 2nd field is where the user enters the value to search for. The user can submit the search in 2 ways. They can press the button or press return when the cursor is in the 2nd item that is a text field (always submits page when you press enter). The results are then displayed in a region of report below.

    The problem I have, is that if the request is for > 10 seconds and the user gets impatient and hits the Enter key or the button search again the query is returned for a second time (or third or fourth according to the impatience of the user) causing the claim on the basis of data with a negative impact on the performance of the system.

    I know how to handle the search key. On a click event on I turn off the button so that the user cannot click on it again and resubmit the request.

    My question is - how can I turn off "always provides a page when you press enter" text item when the user presses enter? I tried an onclick event, but disabled the front element I could type in anything. Onblur event does not seem to do anything.

    Any ideas would be very appreciated.

    Andy

    Hello

    First of all, one thing to try: attributes of the Page, there is a section for the presentation in double - try setting this option on no.

    Otherwise, using the text field type, adds the following to the INPUT tag:

    onkeypress="return submitEnter(this,event)"
    

    which means, you can call your own function of javascript on the onkeypress event, the final line would be call submitEnter(). But you can set the value of a hidden page element:

    function doEnter(t, e)
    {
     if ($x('P1_SEARCH_RUNNING').value == 0)
     {
      $x('P1_SEARCH_RUNNING').value = 1;
      return submitEnter(t, e);
     }
     else
     {
      return false;
     }
    }
    

    Then, after changing your element to an element of normal text on the attributes of HTML form elements, add in:

    onkeypress="return doEnter(this,event)"
    

    Andy

  • Problem of text selection in the text field for entry in the emulator

    I'm having a problem of text selection in a text field when I run my application in the emulator Playbook. Let me see if I can expose the problem here:

    1. The field in question is a classic text, text with an integrated in police entry field. The domain is in a SWC and referenced in another FILE.
    2. The code is set up such that when a user clicks the field function is called to highlight all the text. The code is more or less as follows:
    thisField.addEventListener(MouseEvent.CLICK, onFieldClick);
    
    private function onFieldClick(event:MouseEvent):void
    {
       var selectedField:TextField = event.target as TextField;
       selectedField.setSelection(0, selectedField.text.length);
    }
    

    The problem I'm having is that when I try clicking on the emulator, the text field in 'domain' is sometimes selected as expected, sometimes not. When the text is not selected as expected the cursor always appears in the field and the Playbook keyboard slides up by below. What is particularly problematic, that's what often happens, is that the whole scene moves upward on 10px when it is clicked on the ground. If I try to click on the same ground once again, another change to the top of 10px or so, etc..

    So why the text not properly selected and why the scene evolves upwards?

    I realize that more information may be required from me to correctly solve this problem, but if someone has all understand why this may be the case, I would be happy to learn from him.

    Thank you

    David

    I can answer the question of displacement.  This is a bug in BB and supposed to be fixed in version «next» SDK

    The question of the selection, I'll guess has to do with the fileld with focus, selection is not possible.  Try to set the focus outside of maybe the text field?

  • Hide a text field, unless a certain option is selected in a menu drop-down

    Hello

    I am working on a form and need to hide a text field, unless an option is selected in a drop-down list box. There are nearly 30 options in the dropdown menu, but only to trigger the text field.

    I tried this script on the field of text under "calculate":

    Event.Target.Display = (this.getField("Dropdown1").value == "Other")? display.visible:display.hidden;

    but it doesn't seem to work. I have looked for alternatives, but impossible to find exactly what I'm looking for. Any help is greatly appreciated.

    The first two characters (backslash) make this line of code one comment, so if you remove it should work.

  • create the single text field to display in the select list

    Hello, I will through in circles with what I have to achieve. I have this on a previous post, but do not know if what I was asking, it was OK

    what I need to do, is to have a list of selection of size for the end user, BUT in the backend, I need to have a text field or text fields which can be manually changed. the db has a prod table with

    ID

    / / DESC

    Price

    Size

    fields, so I thought that if it was a field of single line text that could store all sizes in the db, a field and can be edited in the backend

    OR

    paypal buttons how it where the backend has a function of size to add you can add one set

    Mount of sizes and can manually change them is necessarily, because I have the backend show if a product has sold out and I wanted to be able to type "sold out" so that in the selection list

    Thanks in advance for any help

    Not much needs to change.

    You can always display the same result as you would if a product is available.

    The only difference would be the item would show "sold out". In this case, add a conditional event listener to listen to 'Sold Out' in the status of product on your front-end server. A hyperlink to 'request form' echo here.

    Basically, a 'form' link would appear if the product is "sold out".

  • How do I disable a text field or select list when I change record.

    Dear Sir.

    I created the form with the report when I insert the new record, then all ground are able to insert the value in the table.

    Here I want to when I change any folder, then a field as a TEXTFIELD or select list, which I should be disabled in the case of a CHANGE.



    How do I disable a text field or select list when I change record.



    Thank you

    CORINE

    Hello

    Edit the element... There is a Readonly tab... Enter the condition for readonly... for example... Suppose you have a hidden field P1_X for the primary key. To add the new record, this field will be null and for editting p1_x will have the primary key value...

    So you can make the condition as P1_X readonly IS not null...

    Kind regards
    Shijesh

  • Clipboard.AutoCopy = false in topic: config,-no effect. selection of text always copy to the Clipboard

    I have a custom firefox extension that captures data on the Clipboard, as well as a selected text in the document in firefox. It is, whenever I select the text, it replaces the data in the Clipboard with the data of selected text. The Clipboard is always mirroring my text selection. I need to turn it off. Alternatively, make sure that the selected text gets sent to primary Clipboard, while firefox extension accesses Clipboard. (I guess that nsIClipboard retrieves data from the Clipboard vs primary school-press-papers).

    I am convinced that selected text is poured in the Clipboard and not the primary Clipboard. Selected text always overrides everything I copied using Ctrl + C command. Central to the mouse click or Ctrl + V out same thing.

    I have changed the default setting in about:config to clipboard.autocopy value= false. I have restarted my system and selected text still saves to clipboard.  This issue does show up on this thread here https://bugzilla.mozilla.org/show_bug.cgi?id=854565. But it is checked as solved. Apologies if this question should have been posted there. I am using Linux Mint 17, Firefox 32.0.3
    

    Any help much appreciated.

    I solved the problem. Firstly, I've updated all my software, which had no effect. Then I realized that another extension can add this feature. And voila! I'm sure that search the fastest was the culprit. I disabled the addon, even though this feature can probably be disabled.

    I hope this helps future users who face this same problem.

  • Change to the text field selection list

    Hi guys,.

    How can I create a dynamic action at random an element to the list of selection in the text field?

    I use a group of buttons radio with two options: YES and no.

    I don't want to not create two items because I'm using the same database column.

    I tried before with two elements "power off" and "carriers", but without success.

    Can you help me?

    Thank you

    Eric

    Eric.Sacramento wrote:

    Already tried that, please see the photo.

    I'm doing something wrong?

    The error message indicates that there is more than one item referring to the same column name. Follow the instructions given above for only a single and invisible element is related to the database column. Shadow points that actually appear in the user interface must not be bound to the database column, but get their initial value of this article, and conditional calculations should be used to copy the input value in the user interface elements for the element to a database column.

Maybe you are looking for

  • IOS screenshot 10.0.2 - not possible

    Since updating to IOS 10, its not possible to make a screenshot using the home and power button. Someone at - it a solution for this problem? Thank you Rainer

  • AirPlay Audio to Airport Express

    I tried several times to send audio from Airplay (Macbook air to appleTV) to my Airport Express without success. When content comes from ATV audio express airport works correctly on my wireless configuration. BUT When audio is sent from my mac via ai

  • Express Media Player stopped working after Windows recovery with partition

    Hi people I'm new to this forum. We hope to get some tips on your part I recently got a laptop A100. It comes with the Media of Express Player (EMP) installed. Given that my HARD drive is 160 GB, I need to make a few partition to protect my data shou

  • Support of Toshiba and Windows 7

    Brands made on day of Windows 7 except for Toshiba.A must be prepared at the beginning

  • Burn a DVD without compressor

    Dear community, I have a question 'burning '... Of in FCP X v 10.2.2, I want to export my project on DVD. I created chapters with chapter markers. Is it necessary to also buy the Apple Compressor application?Or can burn you a DVD directly from FCP x?