View Full Version : dom undefined after a remove

5 Mar 2010, 12:33 AM

i create a form
in this form i can create or remove some fields
i remove them with this line : tab1.remove('ligne1');
after that i submit the form
it works well while i create fields
but when i remove field and submit the form i got an error :

this.dom is undefined
anonymous()ext-all-debug.js (ligne 4183)
anonymous()ext-all-debug.js (ligne 56080)
anonymous()ext-all-debug.js (ligne 55966)
anonymous()ext-all-debug.js (ligne 60342)
anonymous(function(), Object name=scope)ext-all-debug.js (ligne 11810)
anonymous()ext-all-debug.js (ligne 60341)
anonymous()ext-all-debug.js (ligne 63268)
anonymous()ext-base.js (ligne 7)

chrome://firebug/content/blank.gif var val = this.dom.value;\next-all-debug.js (ligne 4183)

i looking through the forum and i saw that it could be an ext 3.1 bug ...

any idea ??


5 Mar 2010, 2:45 AM
Is tab1 the name of the form? I'm pretty sure that you need to use the FormPanel's remove() method, as this will ensure that the field is taken out of the form's items list.

5 Mar 2010, 4:30 AM
tab1 is a formpanel
when i look at the html code the field is well removed
the error is during the submit

22 Mar 2010, 8:37 AM
any idea?