[CLOSED] Text field with InputMask doesn't get marked as invalid

  1. #1

    [CLOSED] Text field with InputMask doesn't get marked as invalid

    Here is the sample:

    <%@ Page Language="C#" %>
    
    <!DOCTYPE html>
    
    <html>
    <head runat="server">
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" SourceFormatting="True" ScriptMode="Development" />
    
            <ext:FormPanel runat="server">
                <Items>
                    <ext:TextField runat="server" ID="tf1" AllowBlank="False" FieldLabel="TF1">
                        <Plugins>
                            <ext:InputMask runat="server" Mask="99999"></ext:InputMask>
                        </Plugins>
                    </ext:TextField>
                    <ext:TextField runat="server" ID="tf2" AllowBlank="False" FieldLabel="TF2"></ext:TextField>
                    <ext:Button runat="server" Text="Validate" OnClientClick="#{tf1}.validate();#{tf2}.validate();"></ext:Button>
                </Items>
            </ext:FormPanel>
        </form>
    </body>
    </html>
    If you remove this part, the field is marked sa invalid:

    <Plugins>
       <ext:InputMask runat="server" Mask="99999"></ext:InputMask>
    </Plugins>
    Do I miss something?

    Thanks!
    Last edited by Daniil; Nov 27, 2015 at 7:35 PM. Reason: [CLOSED]
  2. #2
    Hi @exe,

    That bug has been fixed in Ext.NET v3.
    https://github.com/extnet/Ext.NET/issues/677

    For v2 please try this:
    Ext.net.InputMask.override({
        clearInitError: Ext.emptyFn
    });

Similar Threads

  1. [CLOSED] [#677] Field is not being marked as invalid when it has a InputMask
    By RaphaelSaldanha in forum 3.x Legacy Premium Help
    Replies: 4
    Last Post: Feb 04, 2015, 2:48 PM
  2. clear all text in textfiel+inputmask
    By asics167 in forum 2.x Help
    Replies: 3
    Last Post: Dec 18, 2013, 6:02 AM
  3. Replies: 8
    Last Post: Jan 21, 2013, 4:22 PM
  4. Replies: 7
    Last Post: Feb 27, 2012, 11:04 AM
  5. [FIXED] [RC2] Invalid field tooltip
    By nightik in forum Bugs
    Replies: 2
    Last Post: Jun 09, 2011, 5:05 PM

Tags for this Thread

Posting Permissions