Skip to main content
Participating Frequently
August 8, 2013
Question

How do you turn off autocomplete functionality from Password Field

  • August 8, 2013
  • 1 reply
  • 1840 views

I have a text field, type=password that I would like to prevent autocomplete functionality for.  Of course, this can be set in the browser, but do not see a property for input or cfinput to disable autocomplete for that field even if it allowed in the browser.

    This topic has been closed for replies.

    1 reply

    Carl Von Stetten
    Legend
    August 8, 2013

    Dave,

    You don't say which version of CF you're using.  The "autocomplete" attribute was not part of the HTML spec until HTML5.  Not all browsers supported it natively, either.  Since CF9 and prior versions predate HTML5, they won't know about the "autocomplete" attribute.

    For a solution, you might look at this StackOverflow thread on disabling autocomplete.

    HTH,

    -Carl V.

    dave7273Author
    Participating Frequently
    August 8, 2013

    Thanks, Carl.  We are currently on 9.x. 

    --Dave