clear all text in textfiel+inputmask

  1. #1

    clear all text in textfiel+inputmask

    Hello!
    i have text field with inputMask plugin:

     <ext:TextField ID="TextField6" runat="server" FieldLabel="ClearWhenInvalid=false" Note="Always visible mask" >
                        <Plugins>
                            <ext:InputMask ID="InputMask6" runat="server" 
                                Mask="(999) 999-9999" 
                                AlwaysShow="true" 
                                ClearWhenInvalid="false"
                                InvalidMaskText="The value doesn't match the mask" / >
                       </Plugins>
                        <Listeners>
                            <AfterRender Handler="this.setValue('123456')" ></AfterRender>
                        </Listeners>
    Click image for larger version. 

Name:	inputmask.jpg 
Views:	13 
Size:	10.1 KB 
ID:	7360

    i see 123456 in field but without Mask .. ( AlwaysShow="true" set )
    and when i start print in fied Mask is Show and all text clear.. and i cant edit the number - only input all as first time..
    in my database have old phone number - without code - now i want add code and may be edit number .. not full input...
    Click image for larger version. 

Name:	inputmask1.jpg 
Views:	12 
Size:	10.3 KB 
ID:	7361
    thanks..
    psps. i find post where write about plugin InputMask - and i think - all quastions InputTextMask's creators
    http://www.sencha.com/forum/showthread.php?21040http://

    last post in this thread sencha - 2012
    Last edited by asics167; Dec 17, 2013 at 12:42 PM.
  2. #2
    may be anybody help me? i must start edit field without clear..
  3. #3
    If you use setValue method of the field then call validateMask method of the plugin
     <AfterRender Handler="this.setValue('123456');  this.inputMask.validateMask(true);" ></AfterRender>
  4. #4
    Thanks Vladimir! now its work fine!

Similar Threads

  1. [CLOSED] InputMask plugin
    By luiz in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Jul 26, 2013, 10:00 PM
  2. Disabling InputMask using JS
    By joaxazevedo in forum 2.x Help
    Replies: 1
    Last Post: Mar 06, 2013, 3:17 PM
  3. [CLOSED] InputMask
    By sigmasafi in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Feb 28, 2013, 4:08 AM
  4. How to add an InputMask plugin?
    By joaxazevedo in forum 2.x Help
    Replies: 3
    Last Post: Feb 21, 2013, 8:28 PM
  5. HTMl Editor Clear Text.
    By grmontero in forum 1.x Help
    Replies: 3
    Last Post: Oct 01, 2009, 7:49 PM

Posting Permissions