REQUIRED INFORMATION


Ext version tested:
  • Ext 4.06
Browser versions tested against:
  • NA
DOCTYPE tested against:
  • NA
Description:
  • Since fields may be shown/hidden based on some criteria, hidden fields should not validate. End users cannot fix fields that are hidden and fail validation. This would match 3.x functionality.
Steps to reproduce the problem:
  • create a form field with allowBlank: false and hide the field. When submitting the form will fail validation
The result that was expected:
  • no validation error

HELPFUL INFORMATION


Screenshot or Video:
  • none
See this URL for live test case: http://


Debugging already done:
  • none
Possible fix:

Code:
(Ext.form.field.Base)

isValid: function() {

var me = this;

        
return me.hidden || me.disabled || me.validateValue(me.processRawValue(me.getRawValue()));

    }
  • not provided
Additional CSS used:
  • only default ext-all.css
Operating System:
  • NA