Title: Making reset button type=&#8221;button&#8221;
Last modified: April 8, 2020

---

# Making reset button type=”button”

 *  Resolved [rocketpig3](https://wordpress.org/support/users/rocketpig3/)
 * (@rocketpig3)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/making-reset-button-typebutton/)
 * Hi,
 * My heatmapping solution does not work with CFF. Specifically, it renders the 
   reset button incorrectly.
 * They have told me that this is because the button has the type=”reset” attribute.
   It needs to be type=”button” in order to work.
 * When I change the type to “button” in the backend the reset button doesn’t work.
 * What is the correct onclick event to use the button type for a reset button, 
   assuming this is possible?
 * Thanks.

Viewing 1 replies (of 1 total)

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/making-reset-button-typebutton/#post-12644185)
 * Hello,
 * If you have an input tag with type button, and you want to apply a reset programmatically,
   enter as its onclick event, the piece of code: `this.form.reset();`
 * and that’s all.
    Best regards.

Viewing 1 replies (of 1 total)

The topic ‘Making reset button type=”button”’ is closed to new replies.

 * ![](https://ps.w.org/calculated-fields-form/assets/icon-256x256.jpg?rev=1734377)
 * [Calculated Fields Form](https://wordpress.org/plugins/calculated-fields-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/calculated-fields-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/calculated-fields-form/)
 * [Active Topics](https://wordpress.org/support/plugin/calculated-fields-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/calculated-fields-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/calculated-fields-form/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [codepeople](https://wordpress.org/support/users/codepeople/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/making-reset-button-typebutton/#post-12644185)
 * Status: resolved