Problem: the original form verification is invalid when the hide () method and setvisible (false) method are used to remove the form from the items Center (a tail form has been removed in many examples ).
Solution: Remove a form using the remove (ID) method to obtain a valid form.
Cause: unknown. I hope you can add
I have encountered a problem. CodeSimplified version, which has not been tested, probably means that if you want to control the non-display form in form, the remove () method is valid.
Copy codeThe Code is as follows: New Ext. Form. formpanel ({
ID: 'reportform', items :[{
{ID: "001 "},
{ID: "002 "},
{ID: "003 "},
{ID: "004 "},
{ID: "005 "}
}]
});
// Ext. getcmp ("reportform"). getform (). isvalid () Verification is invalid
If (istq = 0 ){
Ext. getcmp ("003"). Hide ();
}
// Ext. getcmp ("reportform"). getform (). isvalid () Verification is invalid
If (istq = 0 ){
Ext. getcmp ("003"). sitevisible (false );
}
// Ext. getcmp ("reportform"). getform (). isvalid () Verification is valid
If (istq = 0 ){
Ext. getcmp ("reportform"). Remove ("003 ");
}