CALL (239) 961-8285
ENDURTECH
  • Web Services
    • Web Design
      • Design and Development
      • Web Consulting and Tutoring
      • Hosting and Maintenance
      • Project Portfolio
    • Media
      • Photo and Audio, Video Editing
      • Social Media Management
      • All Web Related Services
    • Marketing
      • Digital Marketing and Branding
      • Search Engine Optimization
    • Client Portal
      • Remote Web Support
      • Web Services Payment
      • Scheduled Payments
  • Tech Support
    • Services
      • Computer Support and Repair
      • Data Backup and Recovery
      • Computer Security, Virus Removal
      • Computer Networking Support
      • Computer Consulting & Tutoring
      • All Technology Related Services
    • Blockchain
      • Blockchain Technology
      • Cryptocurrency Articles
    • Client Portal
      • Remote PC Support
      • Remote Monitoring & Management
      • Tech Services Payment
  • Articles
  • About
  • Talk to Me
  • Menu Menu

Disable Autocomplete for a form with Gravity Forms

Gravity Forms, Plugins, Web Site Support, WordPress

For convenience, most web browsers save what information you previously submitted on website forms so that the next time you are filling in a form you only need to select the entry from a drop down list of choices.

With date fields on Gravity Forms it generally displays the calendar below the input field. The problem occurs when that field was previously submitted by a visitor and the visitor returns to resubmit that form. The autocomplete drop down list will cover the drop down calendar making it difficult to select a date.

We may have a solution. Try using the snippet within this article to turn off the autocomplete feature on:

  1. the entire form
  2. a specific form
  3. a specific form field

Keep in mind that this snippet may not work on all browsers and they constantly revise how they handle such fields.

 

[su_note note_color=”#157BAE” text_color=”#ffffff” radius=”5″]Would you like prompt assistance? If you don’t have time or are not comfortable taking the risk of adding custom code to your website, let us get this done for you now![/su_note]

 

Disable Autocomplete on Gravity Forms

To utilize this snippet to disable autofill on your form add the following code to your functions.php file within the currently active theme or child-theme (preferred – Need a child theme? We can help.)

Notice the second “add_filter” which passes 'gform_field_content_#_#' this is where we tell the function what to apply itself to.

  1. To disable autocomplete on all Gravity Forms forms on your website, replace the entire parameter with 'gform_field_content'
  2. To disable autocomplete on a specific form, replace the parameter with 'gform_field_content_#', where # is the ID of your form.
  3. To disable autocomplete on a specific field within a specific form, replace the parameter with 'gform_field_content_#_#', where the first # is the ID of your form and the second # is the field ID.

 

/*
** Gravity Forms - Disable Autocomplete
*/
add_filter( 'gform_form_tag', 'gform_form_tag_autocomplete', 11, 2 );
function gform_form_tag_autocomplete( $form_tag, $form )
{
if ( is_admin() ) return $form_tag;
if ( GFFormsModel::is_html5_enabled() )
{
$form_tag = str_replace( '>', ' autocomplete="off">', $form_tag );
}
return $form_tag;
}
add_filter( 'gform_field_content_#_#', 'gform_form_input_autocomplete', 11, 5 );
function gform_form_input_autocomplete( $input, $field, $value, $lead_id, $form_id )
{
if ( is_admin() ) return $input;
if ( GFFormsModel::is_html5_enabled() )
{
$input = preg_replace( '/<(input|textarea)/', '<${1} autocomplete="off" ', $input );
}
return $input;
}

 

We hope this article has helped you and your website visitors resolve any browser autocomplete issues. If this was helpful, please like us on Facebook, share this on your social media or kindly buy us a simple cup of coffee below.

 

August 1, 2018
Share this entry
  • Share on Facebook
  • Share on X
  • Share on WhatsApp
  • Share on LinkedIn
  • Share on Reddit
  • Share by Mail
https://endurtech.com/wp-content/uploads/2018/04/gravityforms.jpg 512 512 Manny https://endurtech.com/wp-content/uploads/2018/04/endurtech-logo.png Manny2018-08-01 21:07:482019-05-07 17:07:14Disable Autocomplete for a form with Gravity Forms
Search Search

CONNECT WITH US

This field is for validation purposes and should be left unchanged.
Engagement*

Want to say, "thanks"?
Leave me a review on Facebook and/or Google.

You can send me a tip using your Brave browser. Get Brave!

Only used to send you a receipt.
Include a Message
Popular
  • Windows Logo
    Second Monitor on Windows 10 Resets After SleepJuly 2, 2020 - 6:30 am
  • Windows Logo
    How to Disable the F1 Help Key in Windows 10April 15, 2021 - 2:40 pm
  • Cortana Logo
    How to Disable Microsoft’s CortanaApril 6, 2021 - 9:00 am
  • Firefox Logo
    How to Remove All Passwords from Lockwise in FirefoxMarch 26, 2020 - 11:00 am
Recent
  • How to Fix Brother BrLog Errors
    How to Fix Brother BrLog ErrorsAugust 24, 2026 - 10:55 am
  • How to block Facebook crawler
    List of Spider Crawlers to BlockAugust 10, 2026 - 9:20 am
  • Brave Browser Logo
    How to Fix the “Not Secure” Address Bar Err...July 20, 2026 - 12:48 pm
  • Linkpull Extension By Endurtech
    LinkPull Extension, Grab Any File From a URLJuly 7, 2026 - 7:35 pm

STAY IN TOUCH

ENDURTECH Web Design Company Naples, Florida

Endurtech GitHub ProfileEndurtech YouTube ChannelEndurtech LinkedIn ProfileEndurtech Facebook Page

5 Star Google Review for Endurtech - Naples Web Design Company

Learn More & Connect

Search Search
ENDURTECH Logo
Endurtech GitHub ProfileEndurtech YouTube ChannelEndurtech LinkedIn ProfileEndurtech Facebook Page

5 Star Google Review for Endurtech - Naples Web Design Company

Latest Articles

  • How to Fix Brother BrLog Errors
    How to Fix Brother BrLog ErrorsAugust 24, 2026 - 10:55 am
  • How to block Facebook crawler
    List of Spider Crawlers to BlockAugust 10, 2026 - 9:20 am
  • Brave Browser Logo
    How to Fix the “Not Secure” Address Bar ErrorJuly 20, 2026 - 12:48 pm
  • Linkpull Extension By Endurtech
    LinkPull Extension, Grab Any File From a URLJuly 7, 2026 - 7:35 pm

Recent Projects

  • Jewelry Website Gems of Note
    Gems of NoteNovember 15, 2019 - 10:16 pm
  • Gift Store Facebook Business Page Cover Video
    Gift Store Facebook Business Page Cover VideoApril 13, 2019 - 3:58 pm
  • Toledo Yoga BrandBot Footer Integration
    Toledo YogaApril 9, 2019 - 7:26 am
  • Lawyer Association Website with Member Portal
    National Employment Lawyers Association, Florida ChapterFebruary 26, 2019 - 8:00 am

Business Details

Mondays - Fridays
9:00 am - 5:00 pm
Eastern Standard Time
After hours by appointment

SUPPORT PHONE

(239) 961-8285

MAILING ADDRESS

59 Logan Ln.
Lynchburg, VA 24502

Copyright © 2026 ENDURTECH ® All Rights Reserved. Legal
Link to: WordPress Shows a Pending Plugin Update Link to: WordPress Shows a Pending Plugin Update WordPress Shows a Pending Plugin UpdateWordPress Pending Plugin Update Missing Link to: How to Get a Free SSL Certificate Link to: How to Get a Free SSL Certificate Free SSL Secure Socket Layer Certificte Website Host Naples, FloridaHow to Get a Free SSL Certificate
Scroll to top Scroll to top Scroll to top