Skip to main content
Jefferbob12055564
Inspiring
February 4, 2021
Question

Stopping browser autocomplete in text boxes

  • February 4, 2021
  • 2 replies
  • 2923 views

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 has been closed for replies.

    2 replies

    Participating Frequently
    October 21, 2022

    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.)

    Stagprime2687219
    Brainiac
    February 5, 2021

    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");

     

    Jefferbob12055564
    Inspiring
    February 5, 2021

    Thanks, but it's not working.

    Known Participant
    April 15, 2021

    What is the name of your actual TEB field?

    If the other code options above are not working, perhaps try the following adjustment where you replace only the word  entryBox with the name of your TEB.

    Keep the  quotes, hash, and _inputField in place.

    Again - this would need to be placed as an Execute JavaScript  onEnter action

     

    $("#entryBox_inputField").attr("autocomplete","off");

     


    I guess my problem is, I do not know how to assign code to the TEB?