开发者

ExtJS turning off field validation onkeyup

开发者 https://www.devze.com 2023-01-05 21:46 出处:网络
I开发者_如何学Python have an ExtJS combobox, which is a required field, but I don\'t want the required field error message to show up until I try to submit the form.Right now, it is happening on keyup

I开发者_如何学Python have an ExtJS combobox, which is a required field, but I don't want the required field error message to show up until I try to submit the form. Right now, it is happening on keyup it seems like. I have set validateOnBlur to false, but it still shows up. I am specifying a vtype though, 'required", and it still seems to firing the validate event on the control and therefore the vtype gets called. I don't want the validate to fire until I manually call it. Any help? Here is some code:

var ddl = new TaskCombo({
    id: 'ddl' ,
    fieldLabel: 'test',
    tabIndex: 1,
    selectOnFocus: true,
    autoWidth: true,
    disabled: true,
    forceSelection: true,
    validateOnBlur:false,
    vtype: 'required',
    vtypeText:'This is a required field test',
    msgTarget: 'under',
    store: new TestStore});


Try adding validationEvent:false (docs).

0

精彩评论

暂无评论...
验证码 换一张
取 消