[CLOSED] Optional Combobox Invalid Value MarkInvalid

  1. #1

    [CLOSED] Optional Combobox Invalid Value MarkInvalid

    Hi all,

    I have a combobox in a formpanel and assume that it has two values.
    - "ABC"
    - "DEF"

     <ext:ComboBox ID="combo" runat="server" StoreID="Store1" QueryMode="Local" EnableRegEx="true" AllowBlank="true">
    When I write "GH" in combo, it can't find any value but combo mark itself as valid, and it changes the form as valid. But I want that combo marks itself as invalid and so formpanel will be invalid, like forceselection = "true" property. I can't set forceselection as true, because combo is optional.

    I searched forums, but I can't find a solution that fits my problem. Please can you help me.

    Thanks,
    Vzx
    Last edited by Daniil; Jan 16, 2015 at 8:32 AM. Reason: [CLOSED]
  2. #2
    Hi @Vzx,

    I can suggest to try with a custom Validator.
    http://docs.sencha.com/extjs/4.2.1/#...-cfg-validator

    To validate a blank value with your custom Validator, you will need to set ValidateBlank to true.
    http://docs.sencha.com/extjs/4.2.1/#...-validateBlank

Similar Threads

  1. Replies: 9
    Last Post: Aug 03, 2012, 8:36 AM
  2. Replies: 10
    Last Post: Mar 21, 2011, 9:02 AM
  3. TextField optional visibility
    By jegonzalez in forum 1.x Help
    Replies: 1
    Last Post: Feb 25, 2011, 2:34 PM
  4. [CLOSED] [1.0] ComboBox invalid on load
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 14, 2010, 10:45 PM
  5. [CLOSED] optional confirmation box
    By alexp in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jul 10, 2009, 5:06 AM

Tags for this Thread

Posting Permissions