mdissel
23 May 2007, 12:26 AM
Hello
The current implementation of getName() only returns the name property if the field is rendered..
getName: function(){
return this.rendered && this.el.dom.name ? this.el.dom.name : (this.hiddenName || '');
},
I run into this problem when using the findField(name) before the form is rendered.
I think getName() should always return the name if the name is explicitly set.
getname: function(){
if (this.rendered && this.el.dom.name){
return this.el.dom.name;
}
var cfg = this.getAutoCreate();
return cfg.Name || this.name || this.hiddenName || '';
}
Thanks
Marco
The current implementation of getName() only returns the name property if the field is rendered..
getName: function(){
return this.rendered && this.el.dom.name ? this.el.dom.name : (this.hiddenName || '');
},
I run into this problem when using the findField(name) before the form is rendered.
I think getName() should always return the name if the name is explicitly set.
getname: function(){
if (this.rendered && this.el.dom.name){
return this.el.dom.name;
}
var cfg = this.getAutoCreate();
return cfg.Name || this.name || this.hiddenName || '';
}
Thanks
Marco