gpt4 book ai didi

ExtJS 关闭字段验证 onkeyup

转载 作者:行者123 更新时间:2023-12-01 04:17:27 28 4
gpt4 key购买 nike

我有一个 ExtJS 组合框,这是一个必填字段,但我不希望在我尝试提交表单之前显示必填字段错误消息。现在,它似乎发生在 keyup 上。我已将 validateOnBlur 设置为 false,但它仍然显示。虽然我指定了一个 vtype,“必需”,但它似乎仍然在控件上触发验证事件,因此调用了 vtype。我不希望验证触发,直到我手动调用它。有帮助吗?这里是一些代码:

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});

最佳答案

尝试添加 validationEvent:false ( docs )。

关于ExtJS 关闭字段验证 onkeyup,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3199097/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com