How to refresh a custom form after submission?

@lisamthorpe
If you use code, then you also have to code everything by your own. From startpoint, till end.