# Reset Form Button

**URL:** <https://community.gravityforms.com/t/reset-form-button/15554>\
**Category:** Get Help\
**Tags:** reset-form, reset-button\
**Created:** [July 18, 2023, 6:46pm UTC](https://community.gravityforms.com/t/reset-form-button/15554 "2023-07-18T18:46:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![user5d7127014eacc053](https://avatars.discourse-cdn.com/v4/letter/u/96bed5/32.png) [@user5d7127014eacc053](https://community.gravityforms.com/u/user5d7127014eacc053)\
**Post date:** [July 18, 2023, 6:46pm UTC](https://community.gravityforms.com/t/reset-form-button/15554/1 "2023-07-18T18:46:55Z")

</div>

I have a form where I am implementing this code to reset the form but it does not work after I have hit submit and the require field notifications come up. Is there a wat to clear the notifications from the required fields so a person could start over without the notifications being up

> **[Gravity Forms Reset Button - GravityRanger](https://gravityranger.com/gravity-forms-reset-button/)**
>
> This doc shows how to add a Gravity Forms Reset button to all or one form built with Gravity Forms. There are two solutions.

> **[Contact Us | Fresenius Kabi Nutrition - Caring For Life](https://wcag.freseniuskabinutrition.com/contact-us/)**
>
> Contact us to learn more about how we support the advancement of parenteral nutrition products for critically and chronically ill patients.

---

<div class="post-metadata">

**Author:** ![faisalahammad](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/faisalahammad/32/13948_2.png) [@faisalahammad](https://community.gravityforms.com/u/faisalahammad)\
**Post date:** [July 18, 2023, 11:23pm UTC](https://community.gravityforms.com/t/reset-form-button/15554/2 "2023-07-18T23:23:41Z")

</div>

If you want to eliminate the error message regarding the required field validation, the solution available on this forum topic can be followed. 👇

> [@How to remove "\*required field" notice and where to put the code? \[RESOLVED\]](https://community.gravityforms.com/t/how-to-remove-required-field-notice-and-where-to-put-the-code-resolved/14527/4):
>
> Sure, take your time, and let me know how it goes! Here’s an example to help you insert your code into the functions.php file. smiley \<?php // code // code // code // and // lots of codes // your new code add\_filter( 'gform\_required\_legend', function( $legend, $form ) { return '\* indicates required fields'; }, 10, 2 ); // ---- OR ---- add\_filter( 'gform\_required\_legend', '\_\_return\_empty\_string' ); // make sure to put it before the end of the line ?\>

Give it a try, and let me know how that goes! 😄

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/gravityforms1/original/2X/f/fef63f0599c45e0218c30d9f5d7ca8bff9b00189.png) [@system](https://community.gravityforms.com/u/system)\
**Post date:** [August 17, 2023, 11:23pm UTC](https://community.gravityforms.com/t/reset-form-button/15554/3 "2023-08-17T23:23:58Z")

</div>

Closed on August 17, 2023, 11:23pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
