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
Supplement: The following is a simplified version of the code that I encountered. It has not been tested. It means that the remove () method is valid if you want to control the form not displayed in form.
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 ");
}