reset the textInput field

Hello

I create a data entry with two screens.you application can enter name textInput field in the first screen and second appears on the screen
a button ' save following "and the application go to the one screen when you click the button, then you can add the next new record.

My question is that the textInput field have always given to the last time, when I go to the screen the next time. I hope that the textInput field is empty when I enter the first screen, the second screen. Please let me know how to proceed. Thank you

my code is here:

<? XML version = "1.0" encoding = "utf-8"? >
"" < mx:Application xmlns:mx = ' http://www.adobe.com/2006/mxml ' layout = "absolute" >
< mx: states >
< name mx: State = 'results' >
< mx:RemoveChild target = "{nameInput}" / >
< mx:SetProperty target = '{label1}' name = value 'x' = '129' / >
< mx:SetProperty target = "{label1}" name = value "y" = "62" / >
< mx:SetProperty target = "{label1}" name = "text" value = "data is saved" / >
< mx:SetProperty target = "{label1}" name = "width" value = "130" / >
< mx:SetProperty target = "{button1}" name = 'label' value = "Next record entry" / >
< mx:SetProperty target = "{button1}" name = "width" value = "177" / >
< mx:SetEventHandler target = "{button1}" name = "click on" Manager = "currentState =" "/ >
< / mx: State >
< / mx: states >
< mx:Label = "98" x = "67" text = "" name: "width ="61"id ="label1"/ >"
< mx:TextInput = "167" x = "65" id = "nameInput" / >
< mx:Button = "129" x = "118" label = "Save" id = "button1" width = "170" click = "currentState = 'results'" / >

< / mx:Application >

In the code below, I have changed the SetEventHandler:


http://www.Adobe.com/2006/mxml"layout ="absolute">














Tags: Flex

Similar Questions

  • How to focus the TextInput field

    Hello

    How to focus with the TextInput field. I tried with userIDTxtIt.setFocus ();  The update is available for text entry. but when I enter the TextInput field value as "Through", the keyboard is not available here. so I tried with userIDTxtIt.dispatchEvent (new MouseEvent (MouseEvent.DOUBLE_CLICK));

    key board still focus is not available for text entry.

    Kind regards

    Thiru

    I see, this is a browser security restriction that prevents the flash drive

    get it straight, you might overcome only by using javascript.

  • Reset the signature field

    I'm having a problem with resetting my signature fields. It seemed to work very well in reader X but not XI.

    I have a form with several signature fields, and every time that a signature field is signed, then it blocks in some areas. Now when I reset these fields of signature (via a button), it resets the field itself but does not open the fields that he initially locked.

    Any help with how to unlock these fields as well?

    When a domain is locked when a signature field is signed, the field is set read-only. You can cancel it by setting the property read only fields on false:

    getField("text1").readonly = false;

    You will need to do this for each field. If you use a naming hierarchy for the fields, so that all those that you want have the same prefix (for example, group1.name, group1.address, etc.), you can set them all with a single statement:

    getField("group1").readonly = false;

  • reset the hidden fields on the 'clear form '.

    I have a form that changes the values of some fields to display (or can define read-only) when different options are selected. I have provided a 'Clear form' button that executes a javascript script that resets the fields to their original state, but users have always been able to select clear 'form' in the menu, which bypasses the script and can leave the ├a respect State form.

    Is it possible to prevent that the 'Clear form' menu being selected, or override its function or run one of my functions when it does? I've never had a chance to find a solution, and this form should be reset properly in all conditions that a user can meet.

    Mark,

    How about something like this. Set up a hidden field that when allowed runs your Reset routine. I think that the last field that has been added is the last field to reset. You can initialize its value and call your Reset routine in its Validate event if its value is blank, and then reject the change, so it is not actually get deleted.

  • Reset the hidden fields

    My form begins with a form of sub header with checkboxes. The user controls a box they need and its corresponding subform is displayed. Works fine, right? The problem comes when it comes to reset the fields. I hit the reset button and all data will be deleted, HOWEVER the hidden fields are always visible? How to reset it it ALL to look exactly as it is when you first open? Thank you

    You need to explicitly reset the values of the hidden fields. Go to the click event of the reset button, then set it to null in hidden fields. For example,.

    Form1.Page1.ResetButton1::click - (JavaScript, client)

    xfa.host.resetData ();

    TextField1.rawValue = null;

    Steve

  • How to reset the Status field and delete ToDo list outside the user interface?

    All, morning

    HR 802 generating WebHelp.

    I made use of the status field and ToDo List in the past. For my next release aid, I would like to reset these fields for all the subjects, so I can still have accurate reports as subjects of creation/revision of the final course.

    Is it possible to do without opening each topic in the user interface and compensation/change manual fields? (I thought to delete all fields of ToDo and recreate them, but thought that there is an easier way.) This information appears in each section or in a separate file?

    Thank you

    Patrick

    Hi Patrick

    1. Close all topics that can be opened in the editor.
    2. Open the pod of the list of topics.
    3. Select all subjects.
    4. Right-click and choose Properties from the subject.
    5. Click the status tab.
    6. Modify if needed.

    All subjects should change to reflect the new status and the task list settings.

    See you soon... Rick

    Useful and practical links

    Wish to RoboHelp form/Bug report form

    Begin to learn RoboHelp HTML 7 or 8 days - $24.95!

    Adobe Certified RoboHelp HTML Training

    SorcerStone blog

    RoboHelp EBooks

  • RemoteObject result to display in the TextInput field

    Hi all. I get a record result a value returned by a call to RemoteObject to a CFC. No problem. I then put that into an ArrayCollection collection. Then, I want to display the fields in a form with TextInput fields. I can't find any documentation on the way out the fields.

    The returned fields are ID, number ticket, title, URL, etc. Again, only 1 ticket is returned in the query.

    I tried:

    < mx:TextInput id = text = "{AltirisDetailsResultArray.TicketNumber}" / "txtinputTicketNumber" >

    But I get an error when compiling:
    1119: access of property may be undefined number ticket through a reference with static type mx.collections:ArrayCollection.

    I tried many ways, but nothing works.

    Thank you, all.

    Jeff, thanks for the help. Actually, I figured it out before check you in here once again and had just published my dose. It was right in front of me, so I knew what to look for.

    I just need to tell him where, in the arraycollection collection to get the field.

    MAGIC!

    Thank you, however, I'll be back.

  • Get rid of the rectangle in the textinput

    I hope that there is an easy way to do it, but I can't find a reference to it. My goal is to use a panel with TextInput fields in two contexts. A single display mode and the other in edit mode. So I initially thought that the best thing to do would be to change the editable field (as below) on each TextInput. That works fine, but I want the presentation in view mode (not in edit mode) so that the rectangle around the TextINput field to go. I'll just on this wrong? Is there a way to hide this rectangle?

    < s:TextInput id=" type of "text =" " { something.getItemAt (0) game } "width =" " 290 "editable = » faux " />

    Try using the following syntax:

    
    
  • How to style a TextInput field

    I want to create a TextInput field without border, but cannot do without a border of 1 pixel on 3 sides. How can I remove the grey border on the TextInput field on the code below?
    Thank you.

    <? XML version = "1.0" encoding = "utf-8"? >
    < mx:Application backgroundColor = "0x000000".
    ' xmlns:MX =' http://www.adobe.com/2006/mxml ' layout = "absolute" >
    < mx:HBox = "92" x y = "311" width = "100%" >
    < mx:VBox height = "100%" >
    < mx:TextInput id = "Name1" text = "myText".
    Color = "0xffffff".
    backgroundColor = '0 x 222222 '.
    borderColor = "0 x 222222" / >
    < / mx:VBox >
    < / mx:HBox >
    < / mx:Application >

    I've never tried it myself, but you may need to create a skin. But first try this: borderStyle = "none" (or borderStyle: none in the CSS).

  • I cannot click on the checkboxes of the fields I want to reset the reset form action.  It is only allowing to select all and deselect all.

    I cannot click on checkboxes to the fields I want to reset the reset form action (properties).  It is only allowing to select all and deselect all.  With the help of Acrobat 8 XI-Pro/windows.  When I try to deselect them only one field, it does not uncheck.  This is no longer an option?

    Click on a little out of the center of the box, or use the space bar.

  • Reset the Date/time field

    I have a form I created a Date/time field that automatically fills when open.  I also have a reset button so users can reset the form empty.  I'm trying to figure out how to erase all of the data entered on the form and also to reset the date and time.  I could also have the set button to print the form and then erase all data and reset the date/time field?

    Figured it out.  Just need to set the value to the field calculated - read only and execution property: current Date/time

  • How to successfully reset the fields in a repeating subform

    Hello

    I'm more and more frustrated just trying to create a form dynamic xml () with lifecycle designer.

    As a test, we build a form that contains a repeating subform.

    We want to reset the fields in the current subform and only the current subform using the following snippet:

    var som_kdnr = this.parent.somExpression + ".." Kopfzeile.Kundennummer ';

    xfa.host.resetData (som_kdnr);

    But instead of reset the field "Kundennummer' in the current subform, copy the following code resets this field in all subforms.

    And to make this behavior even more "interesting" than that happens only if we use Adobe Reader XI - if we use Foxit Reader, the script does the job...

    How can we get this running in two players?

    You should not add a string to the somExpression, you must Access the Kundennummer field and then use the somExpression instead of do it yourself.

    this.resolveNode("Kopfzeile.Kundennummer").somExpression;

  • Reset the user database after the removal of field

    Hello

    We use ES2.5 and we discovered this strange Act of user database. We have a Web service that gets the data user of LiveCycle. He former users are displayed that was stored in the old domain I already deleted the directory of the user.

    So... is there a way to reset the user database?

    Floh Cu

    I just idea... I've recreated the field again with the same ID/name but without the directories and resynced the field. Now, all the old users are marked obsolete.

  • Button 'Reset the field' fillable iOS - removal

    I created a form for some sellers to use when they are to make calls.  It is essentially just rows and rows of 5 areas of text - reference, amount, code of the line, description and price.  They use Adobe Reader for the iPhone.

    One of the comments I received from vendors is that when they use it on an iPhone or another iThing, there is a "reset field" button just above the keyboard that they often hit by mistake.  This button resets only the field that is typed in, however it is causing some frustration.  I have two buttons "reset form" that I created myself at the top of the page.

    My question is, can I remove the button "reset" of the interface, while retaining the ability to reset the entire form if they want to?  Is there a setting on the text boxes that will allow me to say that this field can not be reset, while being able to use a button of entire form remains?

    I don't know what is happening on an Android device on the "reset" button, but I don't think - that someone tried a droid yet.  There is no field button reset when using the form on a machine via Adobe Reader Windows.

    You have no control over the user interface, so you can't remove the button, and you can prevent a field in one way and not another being reset.

  • How to manage data and create new textInput fields during the destruction/creation of new views?

    Basically, I need to know how to create another textInput field when I pass data from one view to the other, while recording the data that has been adopted in a first time.

    I want the user to be able to enter text into a textInput on the first view field and see on the next view, BUT I want the following view to record what the user has entered, return to the first view, then take another entry from the user and create another field textInput on the second point of view. It's like a memo pad app. The user enters a task on the first view, then he or she is able to see it on the second point of view. Then, the user must be able to navigate back to the first view and create another task which also goes to the second point of view, but does not replace the first task that was entered. My problem is to create new textInput fields as new data comes in for the second point of view. Any ideas? Perhaps textInput fields are not visual components I should use...

    http://d-solve.com/flexas3-global-variables-and-the-singleton/

Maybe you are looking for

  • gmail login screen is wrong and does not accept my password. URL is just. Help!

    I'm on an iMac, OS 10.9.5, Firefox 37.0.2. When I either (1) click on the link of the site Google gmail or (2) enter the url for gmail, I get a login screen that demand only my username and then allows me by clicking next. In the next screen, asked m

  • Since the installation of Firefox, can no longer send the docs or photos in e-mail. (Talktalk e.mail provider)

    Can no longer send any photo or scanned docs (even in compressed form) via my account of talktalk. If I go via Windows Mail, I have no problem - this seems only occurred since the installation of Firefox - y at - it a setting I need to change? Has an

  • Slide the keyboard

    I use ipad ios 9.2.1 air is it possible for a keyboard slide like a shortcut? I can't use the app store to get an application, because for an ipad school they have deleted the app store with their mdm and stupp, and the app store has disappeared. Fur

  • How to upgrade to windows 7 on Thinkpad T400?

    I brought the Thinkpad T400 in 2008, I want to run windows 7. I know that I need to update my BIOS to activate windows 7. I'm going to buy a windows 7 at BestBuy, is it OK? can someone tell me the steps? Thank you very much. My Thinkpad T400 is CTO o

  • How to get the (green Volume icon) on the LCD screen.

    My Green disappered from my ecran.* LCD volume control icon * not that the taskbar * sound here or "grayed out" on the bottom right of the task bar, it is also. Referring to the one that appears on the LCD when you set the volume, (WITH BARS of COLOR