PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Turn off Autocomplete per Form and/or Field

  1. Is a feature planned for core to disable autocomplete on individual fields and/or the whole form like:

    autocomplete="off"

    Posted 13 years ago on Thursday February 3, 2011 | Permalink
  2. We haven't planned on that yet, but it's something we can consider. I'm sure it would be helpful in a lot of situations.

    Posted 13 years ago on Thursday February 3, 2011 | Permalink
  3. Yeah, in the meantime I suppose the only work around is either output buffering or jQuery, right?

    Posted 13 years ago on Thursday February 3, 2011 | Permalink
  4. I'd say jQuery is your best bet.

    Posted 13 years ago on Thursday February 3, 2011 | Permalink
  5. Will do, thx

    Posted 13 years ago on Thursday February 3, 2011 | Permalink
  6. Just a heads up that if you use the honeypot method and leave auto-complete turned on, the honeypot field will sometimes be populated; depending on what's chosen (name, email are sometimes chosen).

    If you hide the honeypot with CSS, it can appear that the form has submitted even though the details aren't saved / emailed.

    This caused a bit of a headache (used Chrome).

    Posted 13 years ago on Monday March 28, 2011 | Permalink
  7. @teabagstudios Good call. Haven't had anyone report this, but I could see that happening. Unfortunately the honeypot field has to use a common name to entice bots. We can see about adding autocomplete="off" when the HTML5 option is turned on, it won't validate in XHTML.

    Posted 13 years ago on Monday March 28, 2011 | Permalink
  8. lerizzle
    Member

    That would be nice. It would be nice to also be able to add whatever attributes we want to a field. With html5 that would be very usefull.

    Posted 12 years ago on Monday January 30, 2012 | Permalink
  9. lerizzle
    Member

    You can't use javascript.

    Adding autocomplete with Javascript is too late firefox already completed it.

    Giving it a value of '' empties the value on multi page forms :(

    I think the best bet would be to allow for any additional attributes on any field. With all the data stuff in html it would be extremely useful.

    Posted 12 years ago on Tuesday February 14, 2012 | Permalink
  10. lerizzle
    Member

    Oh Wait:

    $( '#gform_8 #input_8_4:visible' ).val('');

    Love jQuery.

    Posted 12 years ago on Tuesday February 14, 2012 | Permalink
  11. wilmoth77
    Member

    I know this isn't a per form solution, but I just added autocomplete='off' to the filters of form_display.php.

    Posted 11 years ago on Friday January 25, 2013 | Permalink
  12. We don't support modifying the plugin files. If anyone would like to request the feature again, please feel free to open a new topic.

    Posted 11 years ago on Friday January 25, 2013 | Permalink

This topic has been resolved and has been closed to new replies.