How to clear a textbox after submit

This is “normally” handled by adding a fresh changeset when its submitted. Since you dont use it, I would use js attached to the onsubmit.