How to refresh a custom form after submission?

What do you mean, when you say —> REFRESH ?

You have your input-fields, where you put in some data.
To reset an input-field, you simply use…

myInputfield = $w('#input1')

myInputfield.value = ""

This should reset the inputfield.

Or the direct way…

$w('#input1').value = ""