Adjustment of focus and the deletion of a field after the length control

I have a form I'm working on that requires a few basic length checks but I have a problem with one of my fields. In the case of change, I have this:

If (xfa, event.newText.match (/ [^ 0-9 /])! == null) {}

this.rawValue = null;

xfa.host.setFocus (this);

}

ElseIf (xfa.event.newText.length > 9) {}

this.rawValue = null;

xfa.host.setFocus (this);

}

but it will not draw the field or set the focus to the field when he fails to verify. I'm not sure what the problem is.

Thank you!

I use dynamic PDF... the code I gave you behaves exactly how you want it to be...

the problem with your code when I test it, is because when you use the corresponding method, it does not return true or false, it returns only the first character of the string... you should try using the RegExp object rather...

In addition, when you try to use (this.rawValue = null) in the case of change, it cannot apply this line of code because the rawValue of the field doesn't have a change not yet, no, unless you have left the field. You should always use the xfa.event when you try to play with the value in the case of change of a textfield...

So try instead... I hope it will work

var reg = new RegExp(/[^0-9]/);

If (reg.test (xfa.event.newText)) {}

XFA. Event.change = "";

xfa.host.setFocus (this);

}

Do not use else if

If (xfa.event.newText.length > 9) {}

XFA. Event.change = "";

xfa.host.setFocus (this);

}

Tags: Adobe LiveCycle

Similar Questions

  • How to get the focus and the slider to textfield when the Application loading

    Hello
    In my application, I need the focus and the cursor on a control textInput that soon the application is loaded.
    The Focus can be set by textInputname.setFocus () in the full demand creation event. It works but
    the cursor do not appear there until what the user clicks anywhere in the area of application. Y does it have no way set cursor on
    the textfield on request load so that if the user enter something without clicking, on request, the text should go to this
    TextField.
    I tried the following things, but it do not cursor to textInput, only the focus is set with this,
    textInputname.setFocus ();
    CursorManager.setFocus ("textInputname");

    If anyone knows the solution please answer...
    Thank you...

    ' v Jay"wrote in message
    News:g6ume8$b8e$1@forums. Macromedia.com...
    > Hi,.
    > This logic to set the cursor to the load of the application with callLater do not work...
    > Do you have another idea

    The problem is that the reader Flash itself has not the focus. I think so
    There are hacks JavaScript that you can use to try to correct this, but I have no
    believe that they are reliable.

    HTH;

    Amy

  • Fingerprints and the remote control supported on Satellite P100-387

    P100-387 has a fingerprint and the remote? Please, someone answer me.
    Thank you.

    Hello

    To my knowledge, the Satellite P100-387 does not support the fingerprint reader and is not supplied with the remote control.
    But you're right.
    The fingerprints and the remote control are optional and some laptops in the P100 series support fingerprint reader and are delivered with command remotely.

    I also found this site with P100-387 material specifications:
    http://EU.computers.Toshiba-Europe.com/cgi-bin/ToshibaCSG/JSP/productPage.do?service=EU&PRODUCT_ID=120514#0

  • Hi, I have problem im my Iphon 6 more are the focus and the image blurred whan im shooting what to do?

    Hi, I have problem in my IPhone 6 more is the focus and blurry image when turn what to do?

    for example, please find the attachment.

    Thank you...

    First check if your iPhone is eligible or not: https://www.apple.com/support/iphone6plus-isightcamera/

    and if your iPhone is not affected, so go here: get help with the camera on your iPhone, iPad or iPod touch - Apple Support

  • Placeholder not cleared on focus to the Textbox control.

    I'm developing an application using JQuery Mobile and phonegap. I keep a placeholder in each text box. But these placeholders not been clear on the focus of the text box. For the first time on the focus to the text box it is clearing, but, if it hurts and focus again, then it is not clearing. This problem occurs only in 9800 touchscreen device. I tested in Bold 9780 and 9900, it works fine. But I don't know why this problem only occurs in the 9800 device. I am also using all the latest version of Phonegap, JQuery and Jquery Mobile.

    Finally found the solution.

    Here is the solution

    http://w3stream.blogspot.in/2012/11/placeholder-not-cleared-on-focus-to.html

  • How to set the focus to the ComboBox control via actionsript?

    Hello

    I wanted the focus (describing the border) on a TextInput(id:myTextInput) and ComboBox(id:myComboBox) in actionscript. I tried myTextInput.setFocus (); that works very well for the TextInput component. In the case of ComboBox, myComboBox.setFocus (); works if and only if the ComboBox editable property is set to true. It does not work if it is not editable ComboBox. I wanted to put the focus on an uneditable combo box... Pls help... How can I achieve this?

    -Deepak

    Hello

    Try this:

    focusManager.setFocus (myComboBox);

    focusManager.showFocus ();

    Kind regards

    Adrian

  • loop of two producers for quick DAQmx and the user controls?

    Hello

    Sorry if my question is maybe a bit too general (I don't have a VI implementation yet).

    I think about the solutions for a Structure of producer-consumer with event loop in the part of the producer.

    So far, if I had to do a project with DAQ, data analysis, data recording and enter the user controls, I've followed usually this kind of approach:

    I used the producer part to capture interactions with the user, and I also had a state machine in the part of the producer, with registry change. I also buy (any faster then 10ms) DAQmx device data in the part of the timeout of the structure of the event in the loop of the producer. I have several consumer loops down, such as data analysis, data recording, etc... I send the data measured in a cluster with the enumerations of the State of the loop from producer to consumer with queue loop.

    I'm not happy with my approach for the following reasons:

    1,

    If I need device acqure faster DAQmx data that the operating system clock can handle (like 1 MHz), so I can't put it in the part of time out of the structure of the event of the producer loop, because here I can go through the while loop with minimum 1 ms.

    2,

    If I put this part DAQ in a loop for quick consumption, it is not admissible for orders from the QUEUE line after that it starts to run (assuming that I use the standard structure of producer-consumer, so consumer loop every time iterates once, when a package comes from the Dequeue).

    Then say, how can I control a young (timed by DAQmx device internal clock) loop of data acquisition of the structure of the producer of the event loop? As loop DAQ to start, stop, restart, etc...

    Thank you very much for the advice!

    You can certainly have several loops of producer.  Have a User Interface, loop driven events to send commands and a separate data acquisition loop to send data are not a problem.  Each loop has a separate queue. (You might be able to make it work with a single, but using two queues avoids many problems).  Often, I used a system of three loops long before that everyone was talking about calling it a producer/consumer.

    Lynn

  • Sending data through the serial port and the mscomm control is not the same as the original data

    Please find attached the mscomSerialWrite2.vi and the resulting image.

    Try it and find that when data "FFAE" 4040 EA41 D8FF is sent,

    the received data are "FFAE" 4040 EA41 3F

    I tried other data, the result is as follows:

    sending: 4164 8163 4341 03 receive: 41 64 81 63 43 41 03 leadK
    sending: A143 B245 6AAA BBCC receive: AA BB 00 A1 B2 45 6a 43 result: NG
    sending: AAAA AAAA AAAA AAAA AAAA AAAA receive: result AA AA AA AA AA AA AA AA AA AA AA AA K
    sending: A1A1 A1A1 A1A1 A1A1 A1A1 receive: result A1 A1 A1 A1 A1 A1 A1 A1 A1 A1K
    Send: FFAE 4040 EA41 D8FF receive: FF AE 40 40 41 EA 3F result: NG
    Send: FFAE 4040 EA41 D8FF AA23 AB33 A233 AAAA A404 ABCD A2CD A22D B22C receive: FF AE 40 40 41 EA 3F 3F 3F 3F AA AA AB CD A2 CD result 3F 3F 3F: NG
    Send: FFAE 40A 2 SDAC AETS receive: result FF AE 40 A2 CC DD EE 00: NG

    Please help me solve the problem.

    According to Microsoft, you want something with non-printable strings as an array of bytes, not a string.  I don't know that it will make a difference in this case, but may be worth a try.

  • WMP11 loses data when extracting. All files are track 0 and the length of the song is not listed.

    Using Win XP Pro & Media Player 11. Works very well for a long time. Recently, I have problems during extraction.

    Album info & track is correct, and he rips it in the right folder (with the names of artist & album as folder names). But the WMP11 database is messed up. The names of the files/tracks are OK, but all the songs are track 0, and all other data such as the name of the album, genre, year and artist are all unknowns. WMP11 does not know the length of the songs.  I can change the data, but not the length.  How can I fix it?

    Hello RHarrigill,

    Thank you for your message.  It is possible that Windows Media Player 11 database must be damaged.  Please follow the steps below:
    Exit Windows Media Player.
    Click Start, run, type %userprofile%\Local Settings\Application Data\Microsoft\Media Player, and then click OK.
    Note Windows Media Player automatically rebuilds the database.
    If this does not resolve the problem, disable the Windows Media Player database cache files. To do this, follow these steps:
    If you are running Windows XP, click Start, click Run, type %userprofile%\Local Settings\Application Data\Microsoft and then click OK.
    Restart Windows Media Player.
    Note Windows Media Player automatically rebuilds the database.
    Please let us know if it did or did not solve your problem.
    See you soon

    Engineer Jason Microsoft Support answers visit our Microsoft answers feedback Forum and let us know what you think.

  • 11R2 how to change IP in OWB_REPOSITORY_LOCATION and the default control center

    We are changing the IP address of the Server repository database OWB. Review of the locations tab, I found the default control center and OWB_REPOSITORY_LOCATION are configured with IP addresses, so I need to change the IP addresses in hostname in both entities. I think that I can not use the OWB_HOME/rtp/sql/UpdateLocation.sql script, so, how do?
    I would be grateful if someone points to the other questions I should check OWB point of view.

    Thanks in advance
    Carmen

    Carmen,
    Just change the address of WB_RT_SERVICE_NODES control centre.
    Don't take any attention to the value of hostname DEFAULT_CONTROL_CENTER in Design Center because this value is taken from the connection details in the window of loging (for display in the Design Center) (if you type in the address IP of Loging window you'll see IP address in the settings of DEFAULT_CONTROL_CENTER without taking into account the actual address stored in the repository OWB).

    Kind regards
    Oleg

  • Control of the database and the grid control

    Hello

    I installed Oracle 10 g DB and configure its control of DB. Then I added this database as the target of OEM Grid Control.

    My question is: after you add the database as a target for the grid control, be it still controlled by the DB control and the grid of the company control?

    It's good questiion Yes this will be monitor by both, please check both console and see

  • Custom TOC and the player controls

    I would like to customize the entire drive and TOC navigation for my captivate project.

    For example, I would like my logo clients above the table of contents and create a look that is customized for the whole experience. Example I would expose the design after: http://www.articulate.com/community/showcase/?page_id=96

    Can you elaborate on the steps I must take to create an appearance that is customized for navigation and the reader? Is there a detailed documentation that I can read on this subject? My friend can write custom, actionscript code that I'm not sure that the General overview of the process. When I export captivate files to Flash CS3, I do not see the files TOC or player?

    Thank you!

    yellomaggie wrote:

    Thank you for your time. In summary, you say that when you export the cp to Flash file and discover the actionscript Panel, there is no variables to customize the table of contents. Basically, the table of contents is under lock and key? If everything should not be accessible?

    Is it not possible to customize the shell that houses the presentations of captivate? I love the entire look of this presentation: http://www.articulate.com/community/guru/2009/Evernote/index.html

    .

    Thank you!

    Yes, I think that you can't really do much with the TOC design and layout, but I would like someone to prove me wrong... Maybe you could try to export a Captivate project finished flashing, edition of willingness to here and compile in Flash as you suggested, but I never had luck actually getting it to compile correctly. (I guess that this feature is only there to make you reach a roundabout idea of how things work). I just tested this out, and I don't think it puts even the reading/table of contents bar in the exported FLA, they seem to be separate.

    The other solution you suggested, having a wrapper shell 'accommodation' presentations is a good and it would be appropriate, but with a lot of work. However, you will need make the menu custom Flash which houses the s embedded SWF and find a way to control the internal variables of the SWF integrated to control reading/slides. (This is possible and are found elsewhere in this forum)

    The disadvantage would be that the only options available in the variables being access to slide numbers, you would have probably coloring edit and redo parts of the menu for each new project, you cannot access the names of slide of Dove.

  • ALTER Table of the default Oracle and the length of name of column Type

    Hi all

    I want to increase the length of the table names and the names of the columns in Oracle.

    By default, it is set like this:

    SQL > dba_tab_columns desc;

    TABLE_NAME NOT NULL VARCHAR2 (30)
    COLUMN_NAME NOT NULL VARCHAR2 (30)
    ...

    Is it possible to change the VARCHAR2 (30) to VARCHAR2 (100)?

    Published by: sukrandere on 12:21 10.Mar.2010

    Table names and column are all two identifiers
    According to the documentation, the maximum length of an identifier is 30 characters.
    It is hard coded in the database software and you can't change it.
    Or do you need to change.

    ---------------
    Sybrand Bakker
    Senior Oracle DBA

  • Setting Focus on the starting control

    If I have a line:
    txtUserID.setFocus ();
    in the function called by creationcomplete, control gets the KIND OF focus. I see the outline around the control, but I can NOT TAPER. I have to click the control with the mouse, then it works. Once the program is running, then any call to setFocus() works very well. Any suggestion please?

    Bruce

    It is a problem of knowm in which the reader Flash itself doesn't have the focus in the browser.

    Workarounds involve javascript in the html wrapper that sets the focus to the Flash Player object on pageLoad. Twelve, setFocus will work as expected.

    There is an ouvertede on CFLEX.net.

    Tracy

  • Signs of adjustment for exposure and the white balance disappeared

    I use Lr 5.3 to adjust some RAW images.  My develop pane is now missing the pane for the white balance, hue and also the pane exposure, contrast, highlights etc. adjustments.  I don't know how this happened or how to restore them.  I use an iMac.

    See you soon

    There is a feature unknown in Lightroom to hide/show panels.

    Looks like the base Panel has inadvertently hidden value. This is a common problem posted in this forum almost every week.

    Right-click anywhere under the histogram in the develop module, click 'Home' to display this Panel.

Maybe you are looking for