# \#code-snippets

**URL:** https://community.gravityforms.com/tag/code-snippets/2375.md

[Latest](https://community.gravityforms.com/latest.md) · [Categories](https://community.gravityforms.com/categories.md) · [Tags](https://community.gravityforms.com/tags.md)

---

## [Email Validation Filter Does Not Work When Email Confirmation Enabled \[RESOLVED\]](https://community.gravityforms.com/t/email-validation-filter-does-not-work-when-email-confirmation-enabled-resolved/18750)

<div class="topic-metadata">

**Author:** [@AeroStar](https://community.gravityforms.com/u/AeroStar)\
**Replies:** 3\
**Last updated:** [January 16, 2025, 7:29pm UTC](https://community.gravityforms.com/t/email-validation-filter-does-not-work-when-email-confirmation-enabled-resolved/18750 "2025-01-16T19:29:33Z")

</div>

Hi there, Your filter, “Email validation by third-party API”, does not work when the Email form field option, “Enable Email Confirmation”, is enabled. When enabled, no matter what email address we enter in the email fi…

---

## [How to Add Background Color to Form Fields When Properly Filled?](https://community.gravityforms.com/t/how-to-add-background-color-to-form-fields-when-properly-filled/18718)

<div class="topic-metadata">

**Author:** [@AeroStar](https://community.gravityforms.com/u/AeroStar)\
**Replies:** 4\
**Last updated:** [January 6, 2025, 9:52pm UTC](https://community.gravityforms.com/t/how-to-add-background-color-to-form-fields-when-properly-filled/18718 "2025-01-06T21:52:39Z")

</div>

Hi there, Is there a code snippet we can use that will add a background color (e.g., light green) to form fields as they are filled out with no errors? (i.e., no validation messages displayed). The plugin, Mailpoet, of…

---

## [How to Style reCaptcha V2?](https://community.gravityforms.com/t/how-to-style-recaptcha-v2/18607)

<div class="topic-metadata">

**Author:** [@AeroStar](https://community.gravityforms.com/u/AeroStar)\
**Replies:** 0\
**Last updated:** [December 8, 2024, 2:01pm UTC](https://community.gravityforms.com/t/how-to-style-recaptcha-v2/18607 "2024-12-08T14:01:18Z")

</div>

Any suggestions on how to restyle reCaptcha V2? (via CSS rule or code snippet) I would like to change, for example, its border radius. I tried most CSS rules provided online but none seem to work. Thank you!

---

## [How to Disable Gravity Forms Plugin Update Notifications](https://community.gravityforms.com/t/how-to-disable-gravity-forms-plugin-update-notifications/18508)

<div class="topic-metadata">

**Author:** [@AeroStar](https://community.gravityforms.com/u/AeroStar)\
**Replies:** 0\
**Last updated:** [November 21, 2024, 12:01am UTC](https://community.gravityforms.com/t/how-to-disable-gravity-forms-plugin-update-notifications/18508 "2024-11-21T00:01:36Z")

</div>

Good Day, Gravity Forms 2.9.0 has been a disaster. We noticed Gravity Forms 2.9.0.1 is in work and not yet released to the public (from what we know). Details: Gravity Forms Changelog - Gravity Forms Documentation Bas…

---

## [PHP Warning When Using Gravity Forms Filter](https://community.gravityforms.com/t/php-warning-when-using-gravity-forms-filter/18340)

<div class="topic-metadata">

**Author:** [@AeroStar](https://community.gravityforms.com/u/AeroStar)\
**Replies:** 0\
**Last updated:** [October 15, 2024, 6:27pm UTC](https://community.gravityforms.com/t/php-warning-when-using-gravity-forms-filter/18340 "2024-10-15T18:27:22Z")

</div>

Hi there, We are using the Gravity Forms code snippet (i.e., filter), noted here. Unfortunately, it’s triggeting the following PHP warnings: \[15-Oct-2024 17:40:08 UTC\] PHP Warning: DOMDocument::loadHTML(): error parsin…

---

## [How to Reorder Admin Toolbar Sub-Menu Links in Alphabetical Order](https://community.gravityforms.com/t/how-to-reorder-admin-toolbar-sub-menu-links-in-alphabetical-order/18287)

<div class="topic-metadata">

**Author:** [@AeroStar](https://community.gravityforms.com/u/AeroStar)\
**Replies:** 2\
**Last updated:** [October 5, 2024, 6:27pm UTC](https://community.gravityforms.com/t/how-to-reorder-admin-toolbar-sub-menu-links-in-alphabetical-order/18287 "2024-10-05T18:27:47Z")

</div>

Good Day, How can I reorder Gravity Forms’ Admin Toolbar sub-menu links in alphabetical order? A PHP/JS code snippet would be great. Thank you! Jonathan

---

## [Change default name validation message programmatically](https://community.gravityforms.com/t/change-default-name-validation-message-programmatically/17839)

<div class="topic-metadata">

**Author:** [@kinetic](https://community.gravityforms.com/u/kinetic)\
**Replies:** 5\
**Last updated:** [July 12, 2024, 4:35pm UTC](https://community.gravityforms.com/t/change-default-name-validation-message-programmatically/17839 "2024-07-12T16:35:02Z")

</div>

Is there a way to filter the default “We need to know your name. What if we wanted to send you a birthday cake?” validation message for the name field? Having to manually change this on every form ensures it get overlook…

---

## [How to Change Order of "Forms" Link in WordPress Toolbar \[RESOLVED\]](https://community.gravityforms.com/t/how-to-change-order-of-forms-link-in-wordpress-toolbar-resolved/17776)

<div class="topic-metadata">

**Author:** [@AeroStar](https://community.gravityforms.com/u/AeroStar)\
**Replies:** 1\
**Last updated:** [July 1, 2024, 6:29pm UTC](https://community.gravityforms.com/t/how-to-change-order-of-forms-link-in-wordpress-toolbar-resolved/17776 "2024-07-01T18:29:43Z")

</div>

The code snippet provided below allows users to change the order of their WordPress Admin Bar (i.e., toolbar) menu items. The one listed below orders our toolbar menu items in alphabetical order from left to right. It w…

---

## [PHP Code Keeper for Gravity Forms](https://community.gravityforms.com/t/php-code-keeper-for-gravity-forms/17722)

<div class="topic-metadata">

**Author:** [@uamv](https://community.gravityforms.com/u/uamv)\
**Replies:** 0\
**Last updated:** [June 22, 2024, 1:01pm UTC](https://community.gravityforms.com/t/php-code-keeper-for-gravity-forms/17722 "2024-06-22T13:01:40Z")

</div>

Hello! I’m excited to share that version 3.0 of PHP Code Keeper for Gravity Forms introduces file management and editing capabilities from directly within your admin dashboard. This update is long overdue. While I’ve be…

---

## [How to Add Border Radius to All Form Fields Using Code Snippet?](https://community.gravityforms.com/t/how-to-add-border-radius-to-all-form-fields-using-code-snippet/16021)

<div class="topic-metadata">

**Author:** [@AeroStar](https://community.gravityforms.com/u/AeroStar)\
**Replies:** 0\
**Last updated:** [October 12, 2023, 2:48pm UTC](https://community.gravityforms.com/t/how-to-add-border-radius-to-all-form-fields-using-code-snippet/16021 "2023-10-12T14:48:42Z")

</div>

Good Day, Is there a code snippet we can use to add a border radius to all form fields? We can do it via CSS, but that requires using a CSS rule for each individual, affected form field. So, for example, we’d like to c…

---

## [Use Code Snippets to "centralize" 100's of identical notifications \[RESOLVED\]](https://community.gravityforms.com/t/use-code-snippets-to-centralize-100s-of-identical-notifications-resolved/14820)

<div class="topic-metadata">

**Author:** [@user5a1c3c16c41d97.7](https://community.gravityforms.com/u/user5a1c3c16c41d97.7)\
**Replies:** 2\
**Last updated:** [April 6, 2023, 3:56am UTC](https://community.gravityforms.com/t/use-code-snippets-to-centralize-100s-of-identical-notifications-resolved/14820 "2023-04-06T03:56:25Z")

</div>

Hello, I have literally hundreds of notifications (say 15 forms with 30 different notifications for each form entry), and it is extremely exhausting to open every notification if I just want to make a small change. Hen…

---

## [Upgrade Version 2.5 to Version 2.7.3](https://community.gravityforms.com/t/upgrade-version-2-5-to-version-2-7-3/14794)

<div class="topic-metadata">

**Author:** [@explore](https://community.gravityforms.com/u/explore)\
**Replies:** 4\
**Last updated:** [April 6, 2023, 1:57am UTC](https://community.gravityforms.com/t/upgrade-version-2-5-to-version-2-7-3/14794 "2023-04-06T01:57:35Z")

</div>

I upgrade from 2.5.xxx to 2.7.3. I have inherited this from a developer that we no longer have contact with so I cannot log a support ticket even though it has a valid licence (it’s not mine and therefore I don’t have an…
