Results 1 to 3 of 3

Thread: Validate un TexeField

  1. #1
    Sencha User ghatfan99's Avatar
    Join Date
    Apr 2010
    Location
    Grenoble 38000, France
    Posts
    29

    Default Validate un TexeField

    hello every one :
    i want that my TextField accept this text "hh:mms" where "hh:mms" = "hour: minutes: seconds"
    i used this code
    Code:
    final TextField<String> fTime = new TextField<String>();
                    fTime.setFieldLabel("Fin Time");
                    fTime.setValue("00:00:00");
                    fTime.setRegex("^\\d+$");
    but i have a problem with : , i dont knwo how i can handle this, if i put just nombers the textfield works, but i want to put six nombers with two :
    if any one can help me????

  2. #2
    Ext GWT Premium Member mariusz.pala's Avatar
    Join Date
    Jun 2008
    Location
    Poland
    Posts
    306

    Default

    You can use input mask plugin with mask 99:99:99

    http://www.extjs.com/forum/showthrea...ut-mask-plugin

  3. #3
    Sencha User ghatfan99's Avatar
    Join Date
    Apr 2010
    Location
    Grenoble 38000, France
    Posts
    29

    Default

    thank's alot my problem is solved

Similar Threads

  1. How to validate date in this
    By baskar in forum Ext 3.x: Help & Discussion
    Replies: 6
    Last Post: 14 Jul 2009, 6:46 AM
  2. how to validate DualList ?
    By premraj in forum Ext GWT: Help & Discussion (1.x)
    Replies: 10
    Last Post: 27 May 2009, 8:20 AM
  3. validate value for textbox validate values are comma separated
    By amey7p in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 16 Feb 2009, 7:40 AM
  4. How to validate TextField.
    By junkzilla in forum Ext GWT: Help & Discussion (1.x)
    Replies: 2
    Last Post: 20 Jul 2008, 6:16 PM
  5. Need some help to validate authentification
    By Drez in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 22 Nov 2007, 12:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •