jimmyphp
19 May 2007, 8:17 AM
Hi all,
I have trid to validate with vtype two combobox using this thread suggestion:
http://extjs.com/forum/showthread.php?t=5717&highlight=vtype
Ext.form.VTypes.lessThan = function(v, field){
var relatedField = Ext.get(field.relatedField);
return field.getValue() < relatedField.getValue();
});
but field.getValue() return not value of combobox but displayText.
Thank's in advance & sorry for english.
I have trid to validate with vtype two combobox using this thread suggestion:
http://extjs.com/forum/showthread.php?t=5717&highlight=vtype
Ext.form.VTypes.lessThan = function(v, field){
var relatedField = Ext.get(field.relatedField);
return field.getValue() < relatedField.getValue();
});
but field.getValue() return not value of combobox but displayText.
Thank's in advance & sorry for english.