Skip to main content
Jefferbob12055564
Inspiring
Feb 4, 2021 9:05 PM UTC
Question

Stopping browser autocomplete in text boxes

Has anyone found a way to stop the browser autocomplete dropdown choices from being shown on TEBs in a published project? Preferably by adding the form or input autocomplete attribute to the Captivate publish template, but even manually adding it post-publish to every project would be better than nothing. We're seeing the same issues previously reported where if a user picks an item from the autocomplete choices, the form auto submits, causing a loss of data in the record. Primary browsers are Chrome and IE. Thanks!

    This topic is closed to new replies. Start a new post to keep the conversation going.

    27 replies

    Participating Frequently
    Oct 21, 2022 8:39 PM UTC

    Has anyone found a solution to this yet? I've looked around and found several options, but none of them are working for me. (My lack of skill in coding and knowing where to put code could be contributing to that.)

    Translate
    Stagprime2687219
    Legend
    Feb 5, 2021 1:24 PM UTC

    I have not had a chance to test this but perhaps you can try this to see if it works.

    Place the code as an onEnter action (Execute JavaScript) for the slide where your TEBs are.

     

    $("input").attr("autocomplete","off");

     

    Translate
    Jefferbob12055564
    Inspiring
    Feb 5, 2021 5:20 PM UTC

    Thanks, but it's not working.

    Translate
    TLCMediaDesign
    Inspiring
    Feb 5, 2021 6:21 PM UTC

    I just tested and one of the only ways was to set it to new-password

     

    $("input").attr("autocomplete", "new-password");

     

    Translate