What I wanted to say is that there cannot be a general way to clear a form that may contain any kind of widget, because there may be widget that cannot be cleared. I took a button as example for those widgets.