How to refresh a custom form after submission?

Simple as that haha. Thank you again, I was just hoping there may be some way I could reset all input fields using a few lines of code instead of having to reset each individual value.

Can I use the declare “myInputfield” line to perhaps = all of the elements and then set the value of all of them this way?

Also, I don’t suppose this would work for dropdown, radio buttons, date pickers and checkboxes.