I have a form, which I have customized with JS including custom submit and cancel buttons. What is the code that I would use for the button to clear the contents of the form. I would like to clear the form but perform no other action. After the form is cleared I can choose to submit or cancel.
Under here you want to look for the section “Programmatically clear (reset) a form”. That code will allow you to clear a form on a custom button’s click event.