Gravity Forms Reset Button

Dec 22, 2021

3 Min. Read

Share URL

This page may contain affiliate links. Please read my disclaimer for more information.

Symptoms

Gravity Forms does not have a built-in method for enabling any type of form reset button. This doc will show you how to add a Reset Form button or Clear Form button to any form built with Gravity Forms.

How To Fix It

There are two different approaches, use whichever one best fits your needs.

  1. Using the gform_submit_button filter
  2. Using one line of HTML in an HTML field

Known Limitations

1. The gform_submit_button filter does not work on all pages in multi-page forms (workaround here)
2. Neither solution will clear fields populated dynamically
3. Neither solution will clear a Product field that uses the Calculation field type

Using the Filter

With this option, you can target a specific form, or apply the Reset Button to all forms on your website.

The Reset button will be placed next to the submit button.

  1. Copy the code snippet below
  2. Paste the snippet into your themes functions.php file or a functionality plugin like WPCodeBox (recommended).
https://gist.github.com/chrisegg/afc77d09c86342028df1d34079c5c068
  1. Modify the code as needed
    • Add your form ID to the filter if you want to only add the reset button to one form (i.e gform_submit_button_11)
    • Change the button text by modifying the value on line 31 (i.e value=”Button Text”)

Using an HTML Field

This solution isn’t ideal if you want to apply the reset button to all forms (use the filter for that), but this is a simple solution that can be implemented quickly if you just need to add it to one form.

The button is also placed within the form (wherever you put the HTML field) as opposed to next to the Submit Button.

  1. Add an HTML field to your form
  2. Copy the line of code below
  3. Paste it into the HTML field Content box
  4. Modify the value (button text) if desired
  5. Click Save Form
<input type="reset" value="Clear Form" />

Have a Multi-Page Form?

You can use the HTML method on a multi-page form, you would just need to add an HTML field to each page with the code above. You can change the button text to “Clear Page”, so that the user knows it will not reset the whole form.

Need More Help?

If you still need help, feel free to use the comments or chat options below.

If you have an active Gravity Forms license, you can also open a support ticket here.

Photo of author
About the Author
Chris Eggleston
Husband. Father of 4. Grandpa of 2. Chief Problem Solver exploring business systems, technology, AI & faith — helping people solve real problems. @mantiswp @chrisegg

Support Chris - Donate $5

Gravity Wiz Add-Ons

Advertisement

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments

Related Post

How to Secure a Digital Broadcast Page with Gravity Forms Submit to Access Add-On

Live events and webinars are powerful ways to connect with your audience, but hosting them directly on your WordPress site...

Oct 3, 2025

4 min. read

Step-by-Step Guide: Sending a Gravity Forms Notification to the User

Gravity Forms notification feature allows you to send emails to users automatically when they submit a form. This is useful...

Mar 20, 2025

5 min. read

Gravity Forms Multi-Date Picker

Gravity Forms is a powerful form builder, but you might occasionally find some limitations. For example, the date picker field...

Nov 13, 2024

4 min. read

How to Migrate From WS Forms to Gravity Forms: A Step-by-Step Guide

Migrating from WS Forms to Gravity Forms can seem daunting, but with the right approach, it can be a smooth...

Oct 26, 2024

4 min. read

How to Connect Gravity Forms to SendFox: A Step-by-Step Tutorial

This tutorial will walk you through connecting Gravity Forms to SendFox and ensuring your contacts are added to your email marketing...

Oct 16, 2024

5 min. read

How to: Gravity Forms BMI Calculator

Many people don’t realize that the calculation feature is built into the Gravity Forms core plugin and is available for...

Oct 10, 2024

4 min. read