1. #11
    Ext User
    Join Date
    Dec 2007
    Location
    Maida Vale
    Posts
    96
    Vote Rating
    0
    dearsina is on a distinguished road

      0  

    Default


    A 'sendEmptyText' boolean would be ideal, because I agree with both sides of the arguement.

  2. #12
    Ext User
    Join Date
    Jun 2008
    Posts
    5
    Vote Rating
    0
    oxyum is on a distinguished road

      0  

  3. #13

  4. #14
    Ext User
    Join Date
    Aug 2009
    Posts
    2
    Vote Rating
    0
    broady is on a distinguished road

      0  

    Default


    My solution:

    Code:
    Ext.onReady(function() {
        Ext.select("form").on('submit', function() {
            Ext.each(Ext.ComponentMgr.all.items, function() {
                if (typeof this.getValue == "undefined" || typeof this.el == "undefined") return;
    
                if (this.getRawValue() != this.el.getValue())
                    this.setRawValue("");
            });
        });
    });