PDA

View Full Version : how to clear a FormPanel completely



Love Yao
16 Nov 2009, 11:16 PM
i use the method : formPanel.clear();
to clear the formPanel.

but if a field of the formPanel setAllowBlank(false);

when to clear,that field will have the Red Line alert appears.

Is there being a way to not lmake this happened?

sven
17 Nov 2009, 4:48 AM
You can call
field.clearInvalid(); on all fields to remove the red markers.